Collections-C icon indicating copy to clipboard operation
Collections-C copied to clipboard

Use of angle brackets around file names for include statements

Open elfring opened this issue 8 years ago • 4 comments

I'm not sure what we would gain from this. It would also break the test builds.

srdja avatar Mar 31 '16 16:03 srdja

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
…

elfring avatar Mar 31 '16 16:03 elfring

You make a good point. I guess that includes should be converted to angle bracket variants.

srdja avatar Mar 31 '16 17:03 srdja

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.

stefanct avatar Jan 19 '20 20:01 stefanct