Skip to content

Conversation

@nathanhhughes
Copy link
Collaborator

@Schmluk some cleanup I was doing a little while ago that I never got around to PRing (I was trying to fix some stuff with how we find glog/gflags downstream / think I was using semantic_inference without glog installed and having issues). I need to double check that this still builds cleanly with everything downstream before this is actually good to go, but I did check that the conditional glog implementation works with/without glog installed

Copy link
Collaborator

@Schmluk Schmluk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


} // namespace

AslFormatter::AslFormatter() = default;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for defaulting constructors in the src file? I'm more used to seeing that in the header (and vice versa, if I see a constructor declaration I assume it's non-default)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I was just trying to move all definitions to the source file for compilation speed reasons, but yeah not super necessary / makes more sense in the header file

} // namespace

// TODO(nathan) add warning
GlogLogger::GlogLogger() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to make the glog logger available and then default to stdout or would it make more sense to just not register it if glog is not included? Slight preference for not registering it, although this gives more explicit warnings about glog not being compiled.


} // namespace

// TODO(nathan) add warning
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these two todos still relevant?

@nathanhhughes nathanhhughes merged commit 3b7dc76 into main Sep 15, 2025
1 check passed
@nathanhhughes nathanhhughes deleted the feature/cleanup_cmake_deps branch September 15, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants