Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Preprocessor: don't consider // to be a line comment in -E -std=c89 mode. | Jordan Rose | 2013-03-05 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | It's beneficial when compiling to treat // as the start of a line comment even in -std=c89 mode, since it's not valid C code (with a few rare exceptions) and is usually intended as such. We emit a pedantic warning and then continue on as if line comments were enabled. This has been our behavior for quite some time. However, people use the preprocessor for things besides C source files. In today's prompting example, the input contains (unquoted) URLs, which contain // but should still be preserved. This change instructs the lexer to treat // as a plain token if Clang is in C90 mode and generating preprocessed output rather than actually compiling. <rdar://problem/13338743> llvm-svn: 176526 | ||||
* | Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. | Daniel Dunbar | 2009-12-15 | 1 | -1/+1 |
| | | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446 | ||||
* | this is really just a recommendation, not a requirement. | Chris Lattner | 2009-04-18 | 1 | -1/+1 |
| | | | | llvm-svn: 69416 | ||||
* | enforce requirements imposed by C90 6.8 TC1, fixing PR3919. | Chris Lattner | 2009-04-18 | 1 | -0/+10 |
llvm-svn: 69415 |