summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer
Commit message (Collapse)AuthorAgeFilesLines
...
* Add FileCheck test for '__has_feature(rtti)'.Ted Kremenek2009-12-031-0/+11
| | | | llvm-svn: 90373
* cleanup parsing of MS integer suffixes a little. this fixes PR5616Nuno Lopes2009-11-281-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 Dunbar2009-11-171-1/+1
| | | | | | clang-cc when they do. llvm-svn: 89070
* Eliminate &&s in tests.Daniel Dunbar2009-11-086-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 thatJohn McCall2009-11-031-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 Thompson2009-10-131-2/+6
| | | | llvm-svn: 84005
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-1/+1
| | | | llvm-svn: 81346
* MultiTestRunner: Validate '&&' at the end of RUN lines.Daniel Dunbar2009-07-251-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 Friedman2009-06-151-0/+4
| | | | | | C++-specific tokens. llvm-svn: 73408
* PR4353: Add support for \E as a character escape.Eli Friedman2009-06-101-0/+21
| | | | llvm-svn: 73153
* accept "#pragma clang foo" where we accept "#pragma GCC foo".Chris Lattner2009-05-121-2/+2
| | | | llvm-svn: 71572
* Implement -Wfour-char-constants, which is an extension, not an extwarn,Chris Lattner2009-04-281-2/+8
| | | | | | and apparently not part of -Wall llvm-svn: 70329
* implement -WmulticharChris Lattner2009-04-281-1/+15
| | | | llvm-svn: 70315
* merge number.c into constants.c and start running it in -verify mode.Chris Lattner2009-04-282-13/+11
| | | | llvm-svn: 70310
* implement the microsoft/gnu "__COUNTER__" macro: rdar://4329310Chris Lattner2009-04-131-0/+16
| | | | llvm-svn: 68933
* Implement the first set of changes for PR3963 and rdar://6759604,Chris Lattner2009-04-121-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 // commentChris Lattner2009-04-051-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 Stump2009-04-021-13/+0
| | | | llvm-svn: 68349
* Update wording.Mike Stump2009-04-021-4/+4
| | | | llvm-svn: 68347
* A code modification hint for files that don't end in a newline.Mike Stump2009-04-021-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 Dunbar2009-03-2418-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 Friedman2009-03-221-2/+2
| | | | llvm-svn: 67483
* Fix -E mismatch; an identifier followed by a numeric constant does notDaniel Dunbar2009-03-181-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 Dunbar2009-03-151-0/+7
| | | | llvm-svn: 67013
* this test isn't testing anything.Chris Lattner2009-03-081-3/+0
| | | | llvm-svn: 66389
* change a diagnostic message from something pedantically correct butChris Lattner2009-02-271-1/+1
| | | | | | | useless to something more vague but hopefully more clear. rdar://6624173 llvm-svn: 65639
* Fix PR2477 - clang misparses "//*" in C89 modeChris Lattner2009-01-161-0/+7
| | | | llvm-svn: 62368
* rdar://6060752 - don't warn about trigraphs in bcpl-style commentsChris Lattner2008-12-121-0/+8
| | | | llvm-svn: 60942
* split into two tests.Chris Lattner2008-11-212-10/+7
| | | | llvm-svn: 59770
* Implement support for C++ nested-name-specifiers ('foo::bar::x') in the ↵Argyrios Kyrtzidis2008-11-081-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 ourDaniel Dunbar2008-09-051-0/+3
| | | | | | preprocessed outputs) llvm-svn: 55826
* Following gcc's behavior, only enable trigraphs if '-trigraphs' or '-ansi' isTed Kremenek2008-09-032-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 Friedman2008-09-021-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 Lattner2008-07-251-2/+3
| | | | llvm-svn: 54037
* Add test case for hex floating point constants in < C99 modeDaniel Dunbar2008-07-251-0/+14
| | | | | | - For: rdar://6096838 llvm-svn: 54036
* Fix PR2252: don't warn on negating an unsigned value ever, and don't emitChris Lattner2008-07-031-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 incorrectlyChris Lattner2008-06-301-0/+2
| | | | | | rejected FP immediates like 08.123 llvm-svn: 52890
* Multiple tests in a single test file must be linked with '&&'.Argyrios Kyrtzidis2008-06-121-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 Friedman2008-06-101-1/+1
| | | | llvm-svn: 52169
* Make this test C instead of C++; making it C++ causes a failure on Linux Eli Friedman2008-06-101-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 Lopes2008-06-011-0/+27
| | | | llvm-svn: 51843
* Fix PR2090, a typo in digraph processing.Chris Lattner2008-02-241-0/+15
| | | | llvm-svn: 47540
* pull .ll and .bc writing out of the ASTConsumer destructors into some topChris Lattner2008-02-061-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 Lattner2007-12-191-0/+11
| | | | llvm-svn: 45212
* Doh! Check in this long overdue test fix.Christopher Lamb2007-11-301-1/+1
| | | | llvm-svn: 44450
* Support floating point literals of the form "1e-16f" which specify an ↵Christopher Lamb2007-11-291-0/+7
| | | | | | exponent but no decimal point. llvm-svn: 44431
* The checking for the delimiters of expected error/warning messages wasBill Wendling2007-11-261-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 Lattner2007-11-141-0/+5
| | | | llvm-svn: 44120
* rename -parse-ast-print to -ast-printChris Lattner2007-10-113-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 implementedTed Kremenek2007-09-263-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
OpenPOWER on IntegriCloud