- Feb 17, 2009
-
-
Dan Gohman authored
llvm-svn: 64784
-
Daniel Dunbar authored
clang doesn't support yet. - See PR3603. llvm-svn: 64783
-
Douglas Gregor authored
llvm-svn: 64781
-
Daniel Dunbar authored
IRgen no longer relies on isConstantInitializer, instead we just try to emit the constant. If that fails then in C we emit an error unsupported (this occurs when Sema accepted something that it doesn't know how to fold, and IRgen doesn't know how to emit) and in C++ we emit a guarded initializer. This ends up handling a few more cases, because IRgen was actually able to emit some of the constants Sema accepts but can't Evaluate(). For example, PR3398. llvm-svn: 64780
-
Daniel Dunbar authored
llvm-svn: 64779
-
Fariborz Jahanian authored
general use; as for, objc2's gc type attributes. No change in functionality. llvm-svn: 64778
-
Daniel Dunbar authored
llvm-svn: 64776
-
Daniel Dunbar authored
llvm-svn: 64775
-
Daniel Dunbar authored
llvm-svn: 64774
-
Duncan Sands authored
llvm-svn: 64773
-
Ted Kremenek authored
llvm-svn: 64772
-
Ben Laurie authored
llvm-svn: 64771
-
Ben Laurie authored
llvm-svn: 64770
-
Mike Stump authored
llvm-svn: 64769
-
Mike Stump authored
llvm-svn: 64768
-
Douglas Gregor authored
much pain when compiling the Linux kernel (PR3592). llvm-svn: 64767
-
Dan Gohman authored
llvm-svn: 64766
-
Daniel Dunbar authored
llvm-svn: 64765
-
Chris Lattner authored
diagnostics. I'm not sure I want to keep this, but hey, it's easy and could be useful or something, even if guarded by a -fshow-me-tons-of-details option. A silly example is: #define A B #define C A #define D C int y = D; We now emit: t.c:11:9: error: use of undeclared identifier 'B' int y = D; ^ t.c:9:11: note: instantiated from: #define D C ^ t.c:8:11: note: instantiated from: #define C A ^ t.c:7:11: note: instantiated from: #define A B ^ A more useful example is from tgmath: t.c:4:9: error: no matching function for call to '__tg_acos' return acos(x); ^~~~~~~ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:51:17: note: instantiated from: #define acos(x) __tg_acos(x) ^ ... candidate set follows ... This does not yet print ranges in instantiation info, (e.g. highlighting the range "__tg_acos(x)" in the last example), but that could be added if we decide this is a good idea :). Thoughts and bug reports welcome! llvm-svn: 64761
-
Chris Lattner authored
llvm-svn: 64760
-
Chris Lattner authored
t.c:4:9: error: invalid type 'short *' to __real operator __tg_choose (__real__(z), C##f(z), (C)(z), C##l(z)), ^ instead of: t.c:4:9: error: invalid type 'short *' to __real or __imag operator __tg_choose (__real__(z), C##f(z), (C)(z), C##l(z)), ^ fixing a fixme. It would be even fancier to get the spelling of the token, but I don't care *that* much :) llvm-svn: 64759
-
Chris Lattner authored
llvm-svn: 64758
-
Daniel Dunbar authored
llvm-svn: 64757
-
Daniel Dunbar authored
llvm-svn: 64756
-
Chris Lattner authored
llvm-svn: 64755
-
Chris Lattner authored
llvm-svn: 64754
-
Ted Kremenek authored
llvm-svn: 64753
-
Chris Lattner authored
llvm-svn: 64752
-
Chris Lattner authored
llvm-svn: 64751
-
Chris Lattner authored
llvm-svn: 64750
-
Chris Lattner authored
2 out of 2 people on irc prefer them gone :) llvm-svn: 64749
-
Chris Lattner authored
llvm-svn: 64748
-
Chris Lattner authored
llvm-svn: 64747
-
Chris Lattner authored
as the last non-note diagnostic that preceeded them. This ensures that diagnostics in main files which have notes with locations in system headers get all the bits and pieces emitted or not in a unit. This fixes PR3215. llvm-svn: 64746
-
Evan Cheng authored
A couple of places where reused use operands should be marked kill. This is exposed by recent availability fallthrough changes. llvm-svn: 64745
-
Chris Lattner authored
highlight the arguments to the macro as well as the identifier. Before: t.c:3:9: error: no matching function for call to '__tg_acos'; candidates are: return acos(x); ^~~~ after: t.c:3:9: error: no matching function for call to '__tg_acos'; candidates are: return acos(x); ^~~~~~~ llvm-svn: 64743
-
Ted Kremenek authored
llvm-svn: 64740
-
Ted Kremenek authored
- Move all analyzer options logic to AnalysisConsumer.cpp. - Unified specification of stores/constraints/output to be: -analyzer-output=... -analyzer-store=... -analyzer-constraints=... instead of -analyzer-range-constraints, -analyzer-store-basic, etc. - Updated drivers (ccc-analyzer, scan-builds, new ccc) to obey this new interface - Updated test cases to conform to new driver options llvm-svn: 64737
-
Douglas Gregor authored
functions, so if we're declaring a static we should implicitly declare a library function by the same name (e.g., malloc, strdup). Fixes PR3592. llvm-svn: 64736
-
Anders Carlsson authored
llvm-svn: 64735
-