- Jun 28, 2013
-
-
Alexander Kornienko authored
Summary: Some valid pre-C++11 constructs change meaning when lexed in C++11 mode, e.g. #define x(_a) printf("foo"_a); (example from http://llvm.org/bugs/show_bug.cgi?id=16342). "foo"_a is treated as a user-defined string literal when parsed in C++11 mode. In order to deal with this correctly, we need to set lexing mode according to which standard the code conforms to. We already have a configuration value for this (FormatStyle.Standard), which seems to be appropriate to use in this case as well. Reviewers: klimek CC: cfe-commits, gribozavr Differential Revision: http://llvm-reviews.chandlerc.com/D1028 llvm-svn: 185149
-
- Jun 26, 2013
-
-
Rafael Espindola authored
llvm-svn: 184940
-
Rafael Espindola authored
llvm-svn: 184939
-
Rafael Espindola authored
llvm-svn: 184938
-
Rafael Espindola authored
llvm-svn: 184937
-
Rafael Espindola authored
llvm-svn: 184915
-
- Jun 25, 2013
-
-
Eric Christopher authored
llvm-svn: 184794
-
- Jun 24, 2013
-
-
Reid Kleckner authored
The goal of this sugar node is to be able to look at an arbitrary FunctionType and tell if any of the parameters were decayed from an array or function type. Ultimately this is necessary to implement Microsoft's C++ name mangling scheme, which mangles decayed arrays differently from normal pointers. Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1014 llvm-svn: 184763
-
Matt Beaumont-Gay authored
print-size-type.cpp was checking for specific record layout output for invalid decls; I've removed the checks but left the records as tests for not crashing. llvm-svn: 184751
-
Dmitri Gribenko authored
Original patch by Fariborz Jahanian; extended by me. Fixes rdar://14124644 llvm-svn: 184688
-
- Jun 23, 2013
-
-
Dmitri Gribenko authored
Remove unneeded member in CommentSema, add a test for the XML schema (the schema already allowed multiple paragraphs in <ResultDiscussion>, but there were no tests for that), fix HTML generation (it is not allowed to have <p> inside <dl>). llvm-svn: 184652
-
- Jun 22, 2013
-
-
Fariborz Jahanian authored
commands. Render them properly in XML output. // rdar://14207725 llvm-svn: 184610
-
- Jun 18, 2013
-
-
Bill Wendling authored
llvm-svn: 184176
-
Dmitri Gribenko authored
llvm-svn: 184169
-
Dmitri Gribenko authored
llvm-svn: 184168
-
- Jun 17, 2013
-
-
Rafael Espindola authored
llvm-svn: 184090
-
- Jun 14, 2013
-
-
Reid Kleckner authored
The big changes are: - Deleting Driver/(Arg|Opt)* - Rewriting includes to llvm/Option/ and re-sorting - 'using namespace llvm::opt' in clang::driver - Fixing the autoconf build by adding option everywhere As discussed in the review, this change includes using directives in header files. I'll make follow up changes to remove those in favor of name specifiers. Reviewers: espindola Differential Revision: http://llvm-reviews.chandlerc.com/D975 llvm-svn: 183989
-
- Jun 13, 2013
-
-
Rafael Espindola authored
llvm-svn: 183945
-
Rafael Espindola authored
llvm-svn: 183944
-
Rafael Espindola authored
Also don't depend on Program.h including PathV1.h. llvm-svn: 183935
-
Rafael Espindola authored
llvm-svn: 183930
-
Benjamin Kramer authored
llvm-svn: 183902
-
Benjamin Kramer authored
llvm-svn: 183901
-
Richard Smith authored
Introduce CXXStdInitializerListExpr node, representing the implicit construction of a std::initializer_list<T> object from its underlying array. The AST representation of such an expression goes from an InitListExpr with a flag set, to a CXXStdInitializerListExpr containing a MaterializeTemporaryExpr containing an InitListExpr (possibly wrapped in a CXXBindTemporaryExpr). This more detailed representation has several advantages, the most important of which is that the new MaterializeTemporaryExpr allows us to directly model lifetime extension of the underlying temporary array. Using that, this patch *drastically* simplifies the IR generation of this construct, provides IR generation support for nested global initializer_list objects, fixes several bugs where the destructors for the underlying array would accidentally not get invoked, and provides constant expression evaluation support for std::initializer_list objects. llvm-svn: 183872
-
- Jun 12, 2013
-
-
Rafael Espindola authored
llvm-svn: 183861
-
- Jun 11, 2013
-
-
Rafael Espindola authored
This is preparation for replacing Path.h with PathV2.h. llvm-svn: 183781
-
Manuel Klimek authored
Patch by Chris Gray. llvm-svn: 183739
-
- Jun 10, 2013
-
-
Reid Kleckner authored
Reviewers: klimek Differential Revision: http://llvm-reviews.chandlerc.com/D941 llvm-svn: 183654
-
- Jun 06, 2013
-
-
Argyrios Kyrtzidis authored
This avoids building libclang twice by default. llvm-svn: 183437
-
Hans Wennborg authored
llvm-svn: 183406
-
Benjamin Kramer authored
llvm-svn: 183404
-
Pavel Labath authored
Summary: This adds a command line argument '-analyze' to clang-check which runs the clang static analyzer on the source files. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D926 llvm-svn: 183399
-
- Jun 05, 2013
-
-
Pavel Labath authored
Summary: This adds two command-line parameters: -extra-arg and -extra-arg-before, which enable the user to pass additional parameters to the compiler command. Reviewers: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D919 llvm-svn: 183320
-
- Jun 04, 2013
-
-
Argyrios Kyrtzidis authored
[libclang] When annotating tokens, don't override a property annotation with a getter/setter method annotation. rdar://13764549 llvm-svn: 183242
-
- May 31, 2013
-
-
Anna Zaks authored
The new advanced option ensures ccc-analyze is used even when better interposition methods are available. llvm-svn: 182981
-
- May 30, 2013
-
-
Daniel Jasper authored
This way, it has the same default as 'patch' and also the example in the code makes more sense as it is explicitly setting -p 1. llvm-svn: 182923
-
Argyrios Kyrtzidis authored
[libclang] When indexing a @synthesize, don't consider that it defines a getter/setter if one is already defined by the user. Fixes rdar://13925258 llvm-svn: 182895
-
- May 29, 2013
-
-
Roman Divacky authored
users can disable those. Just like in autoconf generated makefiles. llvm-svn: 182881
-
- May 25, 2013
-
-
Rafael Espindola authored
John noticed that the fix for pr15930 (r181981) didn't handle indirect uses of local types. For example, a pointer to local struct, or a function that returns it. One way to implement this would be to recursively look for local types. This would look a lot like the linkage computation itself for types. To avoid code duplication and utilize the existing linkage cache, this patch just makes the computation of "type with no linkage but externally visible because it is from an inline function" part of the linkage computation itself. llvm-svn: 182711
-
Argyrios Kyrtzidis authored
llvm-svn: 182682
-