Collections-C
Collections-C copied to clipboard
Use of angle brackets around file names for include statements
Would you like to replace any double quotes by angle brackets around file names for include statements?
I'm not sure what we would gain from this. It would also break the test builds.
I suggest to reconsider the consequences of the following wording from the section "16.2 Source file inclusion" in the standard specification for the programming language "C++".
…
The named source file is searched for in an implementation-defined manner. If this search is not supported, or if the search fails, the directive is reprocessed as if it read
#include <h-char-sequence> new-line
…
- How do you think about to avoid "a duplicated file search" here?
- Would you like to restrict the searched directories for header files of your software?
You make a good point. I guess that includes should be converted to angle bracket variants.
This does not make sense at all - please close it. ""
searches for the included file in the same directory as the including file first (although this is not mandated by the ISO standard I am not aware of any compiler that doesn't do this). This search terminates immediately with the current directory structure.