- Nov 24, 2008
-
-
Chris Lattner authored
uses of getName() with uses of getDeclName(). This upgrades a bunch of diags to take DeclNames instead of std::strings. This also tweaks a couple of diagnostics to be cleaner and changes CheckInitializerTypes/PerformInitializationByConstructor to pass around DeclarationNames instead of std::strings. llvm-svn: 59947
-
Anders Carlsson authored
llvm-svn: 59946
-
Zhongxing Xu authored
llvm-svn: 59943
-
Anders Carlsson authored
llvm-svn: 59939
-
Anders Carlsson authored
llvm-svn: 59938
-
Chris Lattner authored
NamedDecl::getNameAsString() to make it more explicit. llvm-svn: 59937
-
Chris Lattner authored
assert if the name is not an identifier. Update callers to do the right thing and avoid this method in unsafe cases. This also fixes an objc warning that was missing a space, and migrates a couple more to taking IdentifierInfo and QualTypes instead of std::strings. llvm-svn: 59936
-
Chris Lattner authored
llvm-svn: 59935
-
Chris Lattner authored
a new NamedDecl::getAsString() method. Change uses of Selector::getName() to just pass in a Selector where possible (e.g. to diagnostics) instead of going through an std::string. This also adds new formatters for objcinstance and objcclass as described in the dox. llvm-svn: 59933
-
Zhongxing Xu authored
llvm-svn: 59932
-
Zhongxing Xu authored
llvm-svn: 59930
-
Chris Lattner authored
llvm-svn: 59923
-
Chris Lattner authored
llvm-svn: 59922
-
Chris Lattner authored
llvm-svn: 59921
-
Chris Lattner authored
"previously defined here" diagnostics all notes. llvm-svn: 59920
-
- Nov 23, 2008
-
-
Chris Lattner authored
"definitions", not declarations. Point out the location of the original definition. llvm-svn: 59919
-
Chris Lattner authored
Also, point out where the previous decl was. This unxfails two tests. llvm-svn: 59918
-
Chris Lattner authored
with implicit quotes around them. This has a bunch of follow-on effects and requires tweaking to a whole lot of code. This causes a regression in two tests (xfailed) by causing it to emit things like: Line 10: duplicate interface declaration for category 'MyClass1' ('Category1') instead of: Line 10: duplicate interface declaration for category 'MyClass1(Category1)' I will fix this in a follow-up commit. As part of this, I had to start switching stuff to use ->getDeclName() instead of Decl::getName() for consistency. This is good, but I was planning to do this as an independent patch. There will be several follow-on patches to clean up some of the mess, but this patch is already too big. llvm-svn: 59917
-
Chris Lattner authored
without calling getAsString(). This implicitly puts quotes around the name, so diagnostics need to be tweaked to accommodate this. llvm-svn: 59916
-
Chris Lattner authored
No functionality change. llvm-svn: 59908
-
Chris Lattner authored
diags over to use this. QualTypes implicitly print single quotes around them for uniformity and future extension. Doing this requires a little function pointer dance to prevent libbasic from depending on libast. llvm-svn: 59907
-
Zhongxing Xu authored
llvm-svn: 59903
-
Zhongxing Xu authored
llvm-svn: 59899
-
- Nov 22, 2008
-
-
Anders Carlsson authored
llvm-svn: 59889
-
Anders Carlsson authored
llvm-svn: 59887
-
Fariborz Jahanian authored
llvm-svn: 59886
-
Anders Carlsson authored
llvm-svn: 59884
-
Anders Carlsson authored
llvm-svn: 59881
-
Chris Lattner authored
llvm-svn: 59879
-
Fariborz Jahanian authored
'implicit' property with no 'setter'. llvm-svn: 59878
-
Fariborz Jahanian authored
Issuing diagnostics when assigning to read-only properties. This is work in progress. llvm-svn: 59874
-
Sebastian Redl authored
Implement a %plural modifier for complex plural forms in diagnostics. Use it in the overload diagnostics. llvm-svn: 59871
-
Zhongxing Xu authored
llvm-svn: 59870
-
Zhongxing Xu authored
ConcreteInt index for now. llvm-svn: 59869
-
Chris Lattner authored
llvm-svn: 59868
-
Chris Lattner authored
clang executable (when built with gcc 4.2 on the mac) from 14519740 to 14495028 bytes. This shrinks individual object files as well: SemaChecking from 23580->22248, SemaDeclObjc from 61368->57376, SemaExpr from 115628->110516, as well as several others. llvm-svn: 59867
-
Chris Lattner authored
would not eat the "-1" in "0x0p-1", but LiteralSupport would accept it when extensions are on. This caused strangeness and failures when hexfloats were properly treated as an extension (not error) in LiteralSupport. llvm-svn: 59865
-
Chris Lattner authored
its call sites. This makes it more explicit when the hasError flag is getting set and removes a confusing difference in behavior between PP.Diag and Diag in this code. llvm-svn: 59863
-
Chris Lattner authored
(and carefully calculated) effect of allowing the compiler to reason about the aliasing properties of DiagnosticBuilder object better, allowing the whole thing to be promoted to registers instead of resulting in a ton of stack traffic. While I'm not very concerned about the performance of the Diag() method invocations, I *am* more concerned about their code size and impact on the non-diagnostic code. This patch shrinks the clang executable (in release-asserts mode with gcc-4.2) from 14523980 to 14519816 bytes. This isn't much, but it shrinks the lexer from 38192 to 37776, PPDirectives.o from 31116 to 28868 bytes, etc. llvm-svn: 59862
-
Chris Lattner authored
llvm-svn: 59860
-