- Apr 15, 2009
-
-
Chris Lattner authored
nested name specifiers. Now we emit stuff like: t.cpp:8:13: error: unknown type name 'X' static foo::X P; ~~~~ ^ instead of: t.cpp:8:16: error: invalid token after top level declarator static foo::X P; ^ This is inspired by a really awful error message I got from g++ when I misspelt diag::kind as diag::Kind. llvm-svn: 69086
-
- Apr 14, 2009
-
-
Douglas Gregor authored
llvm-svn: 69084
-
Chris Lattner authored
ParseDeclarationSpecifiers into its own function, no functionality change. llvm-svn: 69083
-
Douglas Gregor authored
expression (de-)serialization for VLAs, variable initializers, enum constant initializers, and bitfield widths. llvm-svn: 69075
-
Chris Lattner authored
int in a bitfield. Shantonu found this in a gcc testsuite file. llvm-svn: 69074
-
rdar://problem/6252084Steve Naroff authored
This builds on Eli's work from http://llvm.org/viewvc/llvm-project?view=rev&revision=65678. llvm-svn: 69073
-
Chris Lattner authored
llvm-svn: 69070
-
Chris Lattner authored
C99 mode. This is a regression from an earlier patch of mine. This also simplifies the linkage enums a bit. llvm-svn: 69069
-
Fariborz Jahanian authored
This will match gcc's behavior in the arena. llvm-svn: 69061
-
Mike Stump authored
llvm-svn: 69055
-
Chris Lattner authored
llvm-svn: 69054
-
Daniel Dunbar authored
llvm-svn: 69053
-
Chris Lattner authored
llvm-svn: 69051
-
Anders Carlsson authored
llvm-svn: 69050
-
Sanjiv Gupta authored
Literal value calculation isn't likely to overflow on targets having int as 32 or less. Fixing the assert as it otherwise triggers for PIC16 which as i16 as int. llvm-svn: 69046
-
Chris Lattner authored
pulling some attribute munging stuff into GetLinkageForFunction. This should fix PR3986 llvm-svn: 69045
-
Chris Lattner authored
llvm-svn: 69044
-
Douglas Gregor authored
wrap-up (e.g., turning tentative definitions into definitions). Also, very that, when we actually use the PCH file, we get the ride code generation for tentative definitions and definitions that show up in the PCH file. llvm-svn: 69043
-
Steve Naroff authored
This fixes <rdar://problem/6782722> XCDataTipsManager.m registers, observes notifications in class methods. The radar above is the result of clang typing 'self' in a class method as 'Class', which results in some spurious warnings (GCC types 'self' in a class method as 'id'). I considered changing the type of 'self' to 'id' (to conform to GCC), however this resulted in *many* test cases breaking. In addition, I really prefer a more strongly typed 'self'. All in all, this is the least obtrusive fix I could find for removing the spurious warnings (though we do loose some valid warnings). llvm-svn: 69041
-
Daniel Dunbar authored
- Pull out SetCommonAttributes, which handles the things common to aliases, methods, functions, and variables. - Pull out SetLLVMFunctionAttributesForDefinition, which handles the LLVM attributes which we only want to apply to a definition (like noinline and alwaysinline). - Kill SetGVDeclarationAttributes (inlined into SetFunctionAttributes and specialized). - Kill SetFunctionAttributesForDefinition (inlined into sole caller). - Inline SetGVDefinitionAttributes into SetMethodAttributes and specialize. - Rename SetGVDefinitionAttributes to SetFunctionDefinitionAttributes. This is supposed to be a no functionality change commit, but I may have made a mistake. llvm-svn: 69036
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 69035
-
Daniel Dunbar authored
disambiguate it. - No functionality change. llvm-svn: 69034
-
Daniel Dunbar authored
llvm-svn: 69033
-
Chris Lattner authored
not in c89 mode). llvm-svn: 69032
-
Chris Lattner authored
inlined for some reason, then we don't want a strong or even weak definition. llvm-svn: 69031
-
Chris Lattner authored
llvm-svn: 69030
-
Daniel Dunbar authored
llvm-svn: 69029
-
Chris Lattner authored
llvm-svn: 69028
-
Daniel Dunbar authored
llvm-svn: 69027
-
Chris Lattner authored
llvm-svn: 69026
-
Chris Lattner authored
llvm-svn: 69025
-
Chris Lattner authored
t.c:3:8: warning: extra tokens at end of #endif directive #endif foo ^ // Don't do this in strict-C89 mode because bcpl comments aren't valid there, and it is too much trouble to analyze whether C block comments are safe. llvm-svn: 69024
-
Chris Lattner authored
Warning to properly report that it is an import/include_next instead of claiming it is a #include. llvm-svn: 69023
-
Mike Stump authored
llvm-svn: 69021
-
Daniel Dunbar authored
- Exposed quite a few Sema issues and a CodeGen crash. - See FIXMEs in test case, and in SemaDecl.cpp (PR3983). I'm skeptical that __private_extern__ should actually be a storage class value. I think that __private_extern__ basically amounts to extern A __attribute__((visibility("hidden"))) and would be better off handled (a) as that, or (b) with an extra bit in the VarDecl. llvm-svn: 69020
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 69019
-
Mike Stump authored
llvm-svn: 69010
-
Steve Naroff authored
llvm-svn: 69007
-
Douglas Gregor authored
non-inline external definitions (and tentative definitions) that are found at the top level. The corresponding declarations are stored in a record in the PCH file, so that they can be provided to the ASTConsumer (via HandleTopLevelDecl) when the PCH file is read. llvm-svn: 69005
-
Steve Naroff authored
This was exposed as a result of something else that was recently fixed. llvm-svn: 69004
-