- Sep 02, 2011
-
-
Douglas Gregor authored
and language-specific initialization. Use this to allow ASTUnit to create a preprocessor object *before* loading the AST file. No actual functionality change. llvm-svn: 138983
-
Richard Trieu authored
Refactor CheckAdditionOperands(), CheckSubtractionOperands(), and CheckIncrementDecrementOperand() in SemaExpr.cpp to move reused code to separate functions. llvm-svn: 138975
-
- Sep 01, 2011
-
-
Argyrios Kyrtzidis authored
in the face of buffering C++/ObjC method bodies. llvm-svn: 138972
-
Argyrios Kyrtzidis authored
llvm-svn: 138971
-
Nick Lewycky authored
and may very well be dependent-types, triggering an assertion in debug info codegen. llvm-svn: 138970
-
Richard Trieu authored
Extend the self-reference warning to catch when a constructor references itself upon initialization, such as using itself within its own copy constructor. struct S {}; S s(s); llvm-svn: 138969
-
Argyrios Kyrtzidis authored
Objective-C method buffering(rdar://10056942) Turned out the same issue existed for C++ inline methods. llvm-svn: 138960
-
Douglas Gregor authored
LangOptions, rather than making distinct copies of LangOptions. Granted, LangOptions doesn't actually get modified, but this will eventually make it easier to construct ASTContext and Preprocessor before we know all of the LangOptions. llvm-svn: 138959
-
Fariborz Jahanian authored
for now. llvm-svn: 138958
-
Douglas Gregor authored
llvm-svn: 138957
-
Fariborz Jahanian authored
This concludes //rdar://8843851 llvm-svn: 138947
-
Douglas Gregor authored
include guards don't show up as macro definitions in every translation unit that imports a module. Macro definitions can, however, be exported with the intentionally-ugly #__export_macro__ directive. Implement this feature by not even bothering to serialize non-exported macros to a module, because clients of that module need not (should not) know that these macros even exist. llvm-svn: 138943
-
Francois Pichet authored
I had to force -fno-delayed-template-parsing on some Index tests because delayed template parsing will change the output of some tests. llvm-svn: 138942
-
Rafael Espindola authored
and doing a simple search. Before we would manually check for the linker before the -B options were searched. llvm-svn: 138941
-
Hans Wennborg authored
llvm-svn: 138940
-
Zhongxing Xu authored
free() is returned by realloc(). Most code expect NULL. And we only need to transfer one final ProgramState. llvm-svn: 138937
-
Argyrios Kyrtzidis authored
llvm-svn: 138936
-
Douglas Gregor authored
semantic analysis when taking the address of an xvalue. Instead, just build the unary operator directly, since it's safe to do so (from the IRgen and AST perspectives) for any glvalue. Fixes PR10822. llvm-svn: 138935
-
Argyrios Kyrtzidis authored
The initial incentive was to fix a crash when PCH chaining categories to an interface, but the fix was done in the "modules way" that I hear is popular with the kids these days. Each module stores the local chain of categories and we combine them when the interface is loaded. We also warn if non-dependent modules introduce duplicate named categories. llvm-svn: 138926
-
Chandler Carruth authored
(unsurprisingly) caret diagnostics. This is designed to bring some organization to the monstrous EmitCaretDiagnostic function, and allow factoring it more easily and with less mindless parameter passing. Currently this just lifts the existing function into a method, and splits off the obviously invariant arguments to be class members. No functionality is changed, and there are still lots of warts to let existing code continue functioning as-is. Definitely WIP, more cleanups to follow. llvm-svn: 138921
-
Chandler Carruth authored
llvm-svn: 138920
-
Anna Zaks authored
[analyzer] Revert a regression introduced in r133104(The ARC Migration Tool..) due to a merge error. llvm-svn: 138919
-
Fariborz Jahanian authored
llvm-svn: 138917
-
Fariborz Jahanian authored
synthesis. This new feature is currently placed under -fobjc-default-synthesize-properties option and is off by default pending further testing. It will become the default feature soon. // rdar://8843851 llvm-svn: 138913
-
- Aug 31, 2011
-
-
Douglas Gregor authored
llvm-svn: 138909
-
John McCall authored
message send to an unknown method. rdar://problem/9416370, redux. llvm-svn: 138893
-
Chad Rosier authored
IPHONEOS_DEPLOYMENT_TARGET if undefined, set -miphoneos-version-min based on isysroot. llvm-svn: 138892
-
Eli Friedman authored
llvm-svn: 138880
-
Chandler Carruth authored
to this test, and doesn't always start with 'clang' when fully resolved on some build systems. llvm-svn: 138878
-
Jordy Rose authored
llvm-svn: 138875
-
Douglas Gregor authored
existing practice with Python extension modules. Not that Python extension modules should be using a double-underscored identifier anyway, but... llvm-svn: 138870
-
Fariborz Jahanian authored
and does the Sema on their body after the entire class/category @implementation is seen. This change allows messaging of forward private methods, as well as, access to synthesized ivars of properties with foward synthesize declarations; among others. In effect, this patch removes several restrictions placed on objective-c due to in-place semantics processing of methods. This is part of // rdar://8843851. llvm-svn: 138865
-
Chandler Carruth authored
system for macro-backed source locations. The old APIs are preserved for legacy users. This was intended to land with the main work of instantiation -> expansion, but despite running it by Doug over a month ago, I forgot to commit it. Very sorry for that... llvm-svn: 138860
-
Sebastian Redl authored
llvm-svn: 138855
-
Chandler Carruth authored
of the function in question when applicable (that is, not for blocks). Patch by Joerg Sonnenberger with some stylistic tweaks by me. When discussing this weth Joerg, streaming the decl directly into the diagnostic didn't work because we have a pointer-to-const, and the overload doesn't accept such. In order to make my style tweaks to the patch, I first changed the overload to accept a pointer-to-const, and then changed the diagnostic printing layer to also use a pointer-to-const, cleaning up a gross line of code along the way. llvm-svn: 138854
-
Eli Friedman authored
Change err_pp_file_not_found back to an Error; when it's a Warning, we suppress it in system headers. And it is not a good idea to suppress it in system headers. (This was originally changed in r134996 to implement -MG.) Fixes <rdar://10041960>. And also brings down the number of warnings without a flag by one :) llvm-svn: 138842
-
Douglas Gregor authored
collision between C99 hexfloats and C++0x user-defined literals by giving C99 hexfloats precedence. Also, warning about user-defined literals that conflict with hexfloats and those that have names that are reserved by the implementation. Fixes <rdar://problem/9940194>. llvm-svn: 138839
-
Jeffrey Yasskin authored
aren't considered narrowing conversions. llvm-svn: 138838
-
- Aug 30, 2011
-
-
Douglas Gregor authored
sure that all of the CXXConversionDecls go into the same bucket. Otherwise, name lookup might not find them all. Fixes <rdar://problem/10041960>. llvm-svn: 138824
-
Sebastian Redl authored
This makes the code duplication of implicit special member handling even worse, but the cleanup will have to come later. For now, this works. Follow-up with tests for explicit defaulting and enabling the __has_feature flag to come. llvm-svn: 138821
-