- Jul 19, 2013
-
-
Alexander Kornienko authored
Added -lines X:Y option to specify line range to process. This is a more human-friendly alternative to -offset and -length. Differential Revision: http://llvm-reviews.chandlerc.com/D1160 llvm-svn: 186625
-
- Jul 18, 2013
-
-
Hans Wennborg authored
and add a new option --driver-mode= to control it explicitly. The CCCIsCXX and CCCIsCPP flags were non-overlapping, i.e. there are currently really three modes that Clang can run in: gcc, g++ or cpp, so it makes sense to represent them as an enum. Having a command line flag to control it helps testing. llvm-svn: 186605
-
Reid Kleckner authored
MSBuild writes response files as UTF-16 little endian with a byte order mark. With this change, clang will be able to read them, although we still can't parse any of their flags. Adds a UTF-16-LE response file with a BOM for testing. Differential Revision: http://llvm-reviews.chandlerc.com/D1137 llvm-svn: 186603
-
- Jul 16, 2013
-
-
Rafael Espindola authored
llvm-svn: 186448
-
- Jul 15, 2013
-
-
Craig Topper authored
llvm-svn: 186305
-
Craig Topper authored
llvm-svn: 186302
-
- Jul 12, 2013
-
-
Jordan Rose authored
Thanks, Dmitry! llvm-svn: 186167
-
Jordan Rose authored
These flags control language options and user-visible macros, so it's important to preserve them when analyzing. Rather than try to keep up with all the -f flags, we'll pass them all through and then ban the ones we don't want (like -fsyntax-only). -Wwrite-strings is really an f-flag in disguise: it implies -fconst-strings. Patch by Keaton Mowry, modified by me. llvm-svn: 186138
-
- Jul 09, 2013
-
-
NAKAMURA Takumi authored
llvm-svn: 185928
-
NAKAMURA Takumi authored
-Wdocumentation won't seek -isystem. LIBXML2's headers in a certain distro might be incompatible to -Wdocumentation. FIXME: Could autoconf detect clang or availability of -isystem? llvm-svn: 185927
-
- Jul 08, 2013
-
-
Craig Topper authored
llvm-svn: 185784
-
- Jul 05, 2013
-
-
Argyrios Kyrtzidis authored
llvm-svn: 185725
-
Argyrios Kyrtzidis authored
[libclang] Introduce clang_Cursor_isObjCOptional, which returns whether the declaration was affected by "@optional" rdar://14348525. llvm-svn: 185722
-
- Jul 04, 2013
-
-
Craig Topper authored
Use SmallVectorImpl instead of SmallVector for iterators and references to avoid specifying the vector size unnecessarily. llvm-svn: 185610
-
- Jul 03, 2013
-
-
Jordan Rose authored
This is important for preprocessing steps, which may output to stdout. Also, change ENV accesses using barewords to use string keys instead. PR16414 llvm-svn: 185555
-
Jordan Rose authored
Previously, the CMake build still tried to link clang against the static analyzer libraries, even if CLANG_ENABLE_STATIC_ANALYZER was off. Furthermore, clang-check depends on the analyzer, so it should be disabled (in both CMake and configure builds). In theory, clang-check could be made to conditionally include analyzer support (like clang itself), but for now this at least gets a CMake ALL_BUILD working. Patch by Stephen Kelly, modified by me. llvm-svn: 185548
-
Daniel Jasper authored
This fixes llvm.org/PR16514. llvm-svn: 185531
-
- Jul 02, 2013
-
-
Daniel Jasper authored
Before, the computed byte range would include the trailing newline. clang-format on the other hand counts whitespace as belonging to the following token, so that git-clang-format inadvertendly reformats the first unmodified line as well. It is not entirely clear whether clang-format's behavior itself should be modified, but for now this seems to be a safe change. llvm-svn: 185423
-
- Jul 01, 2013
-
-
Sylvestre Ledru authored
The build system is currently miss-identifying GNU/kFreeBSD as FreeBSD. This kind of simplification is sometimes useful, but in general it's not correct. As GNU/kFreeBSD is an hybrid system, for kernel-related issues we want to match the build definitions used for FreeBSD, whereas for userland-related issues we want to match the definitions used for other systems with Glibc. The current modification adjusts the build system so that they can be distinguished, and explicitly adds GNU/kFreeBSD to the build checks in which it belongs. Fixes bug #16445. Patch by Robert Millan in the context of Debian. llvm-svn: 185312
-
- Jun 30, 2013
-
-
James Dennett authored
WalkUpFromLambdaExpr, so that the Visit* functions are called on that AST node. llvm-svn: 185277
-
- 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
-