Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add FileCheck test for '__has_feature(rtti)'. | Ted Kremenek | 2009-12-03 | 1 | -0/+11 | |
| | | | | llvm-svn: 90373 | |||||
* | cleanup parsing of MS integer suffixes a little. this fixes PR5616 | Nuno Lopes | 2009-11-28 | 1 | -0/+12 | |
| | | | | | | btw, I believe that isMicrosoftInteger can go away; it's not read anywhere llvm-svn: 90036 | |||||
* | Don't #include <stdio.h> when tests don't need it, or use clang instead of ↵ | Daniel Dunbar | 2009-11-17 | 1 | -1/+1 | |
| | | | | | | clang-cc when they do. llvm-svn: 89070 | |||||
* | Eliminate &&s in tests. | Daniel Dunbar | 2009-11-08 | 6 | -15/+15 | |
| | | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430 | |||||
* | Reorganize the parsing of decl groups / function definitions so that | John McCall | 2009-11-03 | 1 | -2/+2 | |
| | | | | | | | declarators are parsed primarily within a single function (at least for these cases). Remove some excess diagnostics arising during parse failures. llvm-svn: 85924 | |||||
* | Converted to use FileCheck. | John Thompson | 2009-10-13 | 1 | -2/+6 | |
| | | | | llvm-svn: 84005 | |||||
* | Remove tabs, and whitespace cleanups. | Mike Stump | 2009-09-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 81346 | |||||
* | MultiTestRunner: Validate '&&' at the end of RUN lines. | Daniel Dunbar | 2009-07-25 | 1 | -1/+1 | |
| | | | | | | | | - This is just to normalize, these will go away soon hopefully. Added all the missing '&&'s that have crept in. :) llvm-svn: 77062 | |||||
* | PR4395: Don't detect token concatenation in C mode for | Eli Friedman | 2009-06-15 | 1 | -0/+4 | |
| | | | | | | C++-specific tokens. llvm-svn: 73408 | |||||
* | PR4353: Add support for \E as a character escape. | Eli Friedman | 2009-06-10 | 1 | -0/+21 | |
| | | | | llvm-svn: 73153 | |||||
* | accept "#pragma clang foo" where we accept "#pragma GCC foo". | Chris Lattner | 2009-05-12 | 1 | -2/+2 | |
| | | | | llvm-svn: 71572 | |||||
* | Implement -Wfour-char-constants, which is an extension, not an extwarn, | Chris Lattner | 2009-04-28 | 1 | -2/+8 | |
| | | | | | | and apparently not part of -Wall llvm-svn: 70329 | |||||
* | implement -Wmultichar | Chris Lattner | 2009-04-28 | 1 | -1/+15 | |
| | | | | llvm-svn: 70315 | |||||
* | merge number.c into constants.c and start running it in -verify mode. | Chris Lattner | 2009-04-28 | 2 | -13/+11 | |
| | | | | llvm-svn: 70310 | |||||
* | implement the microsoft/gnu "__COUNTER__" macro: rdar://4329310 | Chris Lattner | 2009-04-13 | 1 | -0/+16 | |
| | | | | llvm-svn: 68933 | |||||
* | Implement the first set of changes for PR3963 and rdar://6759604, | Chris Lattner | 2009-04-12 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which tries to do better error recovery when it is "obvious" that an identifier is a mis-typed typename. In this case, we try to parse it as a typename instead of as the identifier in a declarator, which gives us several options for better error recovery and immediately makes diagnostics more useful. For example, we now produce: t.c:4:8: error: unknown type name 'foo_t' static foo_t a = 4; ^ instead of: t.c:4:14: error: invalid token after top level declarator static foo_t a = 4; ^ Also, since we now parse "a" correctly, we make a decl for it, preventing later uses of 'a' from emitting things like: t.c:12:20: error: use of undeclared identifier 'a' int bar() { return a + b; } ^ I'd really appreciate any scrutiny possible on this, it is a tricky area. llvm-svn: 68911 | |||||
* | fix rdar://6757323, where an escaped newline in a // comment | Chris Lattner | 2009-04-05 | 1 | -0/+6 | |
| | | | | | | was causing the char after the newline to get eaten. llvm-svn: 68430 | |||||
* | Move the rest of the fixit tests to the FixIt area. | Mike Stump | 2009-04-02 | 1 | -13/+0 | |
| | | | | llvm-svn: 68349 | |||||
* | Update wording. | Mike Stump | 2009-04-02 | 1 | -4/+4 | |
| | | | | llvm-svn: 68347 | |||||
* | A code modification hint for files that don't end in a newline. | Mike Stump | 2009-04-02 | 1 | -0/+13 | |
| | | | | | | | Eventually, would be nice to be able to run these modifications even when we don't want the warning or errors for the actual diagnostic. llvm-svn: 68272 | |||||
* | Rename clang to clang-cc. | Daniel Dunbar | 2009-03-24 | 18 | -27/+27 | |
| | | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602 | |||||
* | Don't use &> in tests; dash doesn't understand it. | Eli Friedman | 2009-03-22 | 1 | -2/+2 | |
| | | | | llvm-svn: 67483 | |||||
* | Fix -E mismatch; an identifier followed by a numeric constant does not | Daniel Dunbar | 2009-03-18 | 1 | -0/+4 | |
| | | | | | | | | require a space (to avoid concatenation) if the numeric constant had a leading period. - PR3819. llvm-svn: 67163 | |||||
* | Don't accept '$' in identifiers in assembler-with-cpp mode. | Daniel Dunbar | 2009-03-15 | 1 | -0/+7 | |
| | | | | llvm-svn: 67013 | |||||
* | this test isn't testing anything. | Chris Lattner | 2009-03-08 | 1 | -3/+0 | |
| | | | | llvm-svn: 66389 | |||||
* | change a diagnostic message from something pedantically correct but | Chris Lattner | 2009-02-27 | 1 | -1/+1 | |
| | | | | | | | useless to something more vague but hopefully more clear. rdar://6624173 llvm-svn: 65639 | |||||
* | Fix PR2477 - clang misparses "//*" in C89 mode | Chris Lattner | 2009-01-16 | 1 | -0/+7 | |
| | | | | llvm-svn: 62368 | |||||
* | rdar://6060752 - don't warn about trigraphs in bcpl-style comments | Chris Lattner | 2008-12-12 | 1 | -0/+8 | |
| | | | | llvm-svn: 60942 | |||||
* | split into two tests. | Chris Lattner | 2008-11-21 | 2 | -10/+7 | |
| | | | | llvm-svn: 59770 | |||||
* | Implement support for C++ nested-name-specifiers ('foo::bar::x') in the ↵ | Argyrios Kyrtzidis | 2008-11-08 | 1 | -1/+1 | |
| | | | | | | | | Parser side. No Sema functionality change, just the signatures of the Action/Sema methods. llvm-svn: 58913 | |||||
* | Test case for previous commit (Workaround gcc bug causing crash on our | Daniel Dunbar | 2008-09-05 | 1 | -0/+3 | |
| | | | | | | preprocessed outputs) llvm-svn: 55826 | |||||
* | Following gcc's behavior, only enable trigraphs if '-trigraphs' or '-ansi' is | Ted Kremenek | 2008-09-03 | 2 | -9/+9 | |
| | | | | | | specified, or -std is set to a conforming mode. llvm-svn: 55738 | |||||
* | Fix for PR2750; don't check for an 'e' in the trash after the token. | Eli Friedman | 2008-09-02 | 1 | -0/+13 | |
| | | | | | | | | Note that this isn't really a complete fix; I think there are other potential overrun situations. I don't really know what the best systematic fix is, though. llvm-svn: 55622 | |||||
* | update this testcase. | Chris Lattner | 2008-07-25 | 1 | -2/+3 | |
| | | | | llvm-svn: 54037 | |||||
* | Add test case for hex floating point constants in < C99 mode | Daniel Dunbar | 2008-07-25 | 1 | -0/+14 | |
| | | | | | | - For: rdar://6096838 llvm-svn: 54036 | |||||
* | Fix PR2252: don't warn on negating an unsigned value ever, and don't emit | Chris Lattner | 2008-07-03 | 1 | -1/+4 | |
| | | | | | | 'integer constant is so large that it is unsigned' warning for hex literals. llvm-svn: 53070 | |||||
* | Fix a bug reported by Kelly Wilson, where we incorrectly | Chris Lattner | 2008-06-30 | 1 | -0/+2 | |
| | | | | | | rejected FP immediates like 08.123 llvm-svn: 52890 | |||||
* | Multiple tests in a single test file must be linked with '&&'. | Argyrios Kyrtzidis | 2008-06-12 | 1 | -1/+1 | |
| | | | | | | Otherwise, failing tests other than the last one will not be reported. llvm-svn: 52231 | |||||
* | Fix the run line for this test. | Eli Friedman | 2008-06-10 | 1 | -1/+1 | |
| | | | | llvm-svn: 52169 | |||||
* | Make this test C instead of C++; making it C++ causes a failure on Linux | Eli Friedman | 2008-06-10 | 1 | -0/+0 | |
| | | | | | | because clang can't parse stdio.h in C++ mode yet. llvm-svn: 52168 | |||||
* | fix PR2357 (#ifs didnt invalidate the multiple-inclusion optimization state) | Nuno Lopes | 2008-06-01 | 1 | -0/+27 | |
| | | | | llvm-svn: 51843 | |||||
* | Fix PR2090, a typo in digraph processing. | Chris Lattner | 2008-02-24 | 1 | -0/+15 | |
| | | | | llvm-svn: 47540 | |||||
* | pull .ll and .bc writing out of the ASTConsumer destructors into some top | Chris Lattner | 2008-02-06 | 1 | -2/+2 | |
| | | | | | | | | | level code in clang. This is a cleanup, but does implement "-o" for -emit-llvm. One effect of this is that "clang foo.c -emit-llvm" will now emit into foo.ll instead of stdout. Use "clang foo.c -emit-llvm -o -" or "clang < foo.c -emit-llvm" to get the old behavior. llvm-svn: 46791 | |||||
* | Add support for #pragma mark, which shouldn't warn about bogus tokens. | Chris Lattner | 2007-12-19 | 1 | -0/+11 | |
| | | | | llvm-svn: 45212 | |||||
* | Doh! Check in this long overdue test fix. | Christopher Lamb | 2007-11-30 | 1 | -1/+1 | |
| | | | | llvm-svn: 44450 | |||||
* | Support floating point literals of the form "1e-16f" which specify an ↵ | Christopher Lamb | 2007-11-29 | 1 | -0/+7 | |
| | | | | | | exponent but no decimal point. llvm-svn: 44431 | |||||
* | The checking for the delimiters of expected error/warning messages was | Bill Wendling | 2007-11-26 | 1 | -1/+1 | |
| | | | | | | | looking only for { and } instead of {{ and }}. Changed it to check for this explicitly. llvm-svn: 44326 | |||||
* | Fix a bug handling hex floats in c90 mode, pointed out by Neil. | Chris Lattner | 2007-11-14 | 1 | -0/+5 | |
| | | | | llvm-svn: 44120 | |||||
* | rename -parse-ast-print to -ast-print | Chris Lattner | 2007-10-11 | 3 | -3/+3 | |
| | | | | | | | rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only llvm-svn: 42852 | |||||
* | Removed option "-parse-ast-check" from clang driver. This is now implemented | Ted Kremenek | 2007-09-26 | 3 | -3/+3 | |
| | | | | | | | | | | | | using "-parse-ast -verify". Updated all test cases (using a sed script) that invoked -parse-ast-check to now use -parse-ast -verify. Fixed a bug where using "-verify" instead of "-parse-ast-check" would not correctly create the DiagClient needed to accumulate diagnostics. llvm-svn: 42365 |