Includes of system headers are never implicitly relative to the source file by bavison · Pull Request #282 · cppcheck-opensource/simplecpp
-
Notifications
You must be signed in to change notification settings - Fork 103
Conversation
…e file Sometimes, #include directives with angle-bracket filespec delimiters are used (or abused) to defeat the preprocessor's behaviour where it tries to find a header file at a path relative to the file containing the directive. Without this fix, any non-root header file, foo/bar.h, which does #include <bar.h> while intending to include a root-level header file, will instead enter an infinite inclusion loop, terminating when the inclusion stack overflows with a "#include nested too deeply" error.
bavison
changed the title
Includes of system headers are never relative to the source file
Includes of system headers are never implicitly relative to the source file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters