- Mar 20, 2013
-
-
Daniel Jasper authored
llvm-svn: 177506
-
Daniel Jasper authored
Before: A<int * (int)>; After: A<int *(int)>; llvm-svn: 177505
-
Hans Wennborg authored
We were checking "Arch == llvm::Triple::x86_64 || Arch == llvm::Triple::x86_64", but the rhs should actually check for powerpc64. Found while experimenting with a potential new Clang warning. llvm-svn: 177496
-
Douglas Gregor authored
llvm-svn: 177491
-
John McCall authored
Patch by Stephen Lin! llvm-svn: 177490
-
David Blaikie authored
The backend portion of this test will be committed to LLVM's test suite. llvm-svn: 177485
-
Douglas Gregor authored
This fixes regressions introduced in r177466 that caused several module tests to fail sporadically. llvm-svn: 177481
-
Richard Smith authored
llvm-svn: 177480
-
Rafael Espindola authored
Each toolchain has a set of tools, but they are all of known types. It can have a linker, an assembler, a "clang" (compile, analyze, ...) a non-clang compiler, etc. Instead of keeping a map, just have member variable for each type of tool. llvm-svn: 177479
-
Nick Lewycky authored
emit function names in .gcda files by default, and the flag turns that off! Rename the flag to make it match what it actually does. This keeps the default format compatible with gcc 4.2. Also add a test for this flag. llvm-svn: 177475
-
John McCall authored
performing unqualified lookup for a friend class declaration. rdar://13393749 llvm-svn: 177473
-
Reid Kleckner authored
This code was changed in r158376 to get template argument source info for better diagnostics, but the current code asserts for any kind of unsupported template argument before it can issue a diagnostic. This change goes back to the Itanium implementation of isTemplate() and puts the argument index into the diagnostic instead of a source location. Review URL: http://llvm-reviews.chandlerc.com/D553 llvm-svn: 177471
-
Nick Lewycky authored
is enabled. Also add a new -test-coverage cc1 flag which makes testing coverage possible and add our first clang-side coverage test. llvm-svn: 177470
-
Jordan Rose authored
With the assurance that the trimmed graph does not contain cycles, this patch is safe (with a few tweaks), and provides the performance boost it was intended to. Part of performance work for <rdar://problem/13433687>. llvm-svn: 177469
-
Jordan Rose authored
Having a trimmed graph with no cycles (a DAG) is much more convenient for trying to find shortest paths, which is exactly what BugReporter needs to do. Part of the performance work for <rdar://problem/13433687>. llvm-svn: 177468
-
rdar://problem/10796651Douglas Gregor authored
Configuration macros are macros that are intended to alter how a module works, such that we need to build different module variants for different values of these macros. A module can declare its configuration macros, in which case we will complain if the definition of a configation macro on the command line (or lack thereof) differs from the current preprocessor state at the point where the module is imported. This should eliminate some surprises when enabling modules, because "#define CONFIG_MACRO ..." followed by "#include <module/header.h>" would silently ignore the CONFIG_MACRO setting. At least it will no longer be silent about it. Configuration macros are eventually intended to help reduce the number of module variants that need to be built. When the list of configuration macros for a module is exhaustive, we only need to consider the settings for those macros when building/finding the module, which can help isolate modules for various project-specific -D flags that should never affect how modules are build (but currently do). llvm-svn: 177466
-
David Blaikie authored
Mostly, try to depend on the annotation comments more so these tests are more legible, brief, and agnostic to schema changes in the future (sure, they're not agnostic to changes to the comment annotations but since they're easier to read they should be easier to update if that happens). llvm-svn: 177457
-
Jordan Rose authored
A floating-point version is nice for testing unknown values, but it's good to be able to check all parts of the structure as well. Test change only, no functionality change. llvm-svn: 177455
-
- Mar 19, 2013
-
-
Anna Zaks authored
This fixes a crash when analyzing LLVM that was exposed by r177220 (modeling of trivial copy/move assignment operators). When we look up a lazy binding for “Builder”, we see the direct binding of Loc at offset 0. Previously, we believed the binding, which led to a crash. Now, we do not believe it as the types do not match. llvm-svn: 177453
-
Jordan Rose authored
(see previous commit) llvm-svn: 177449
-
Jordan Rose authored
The whole reason we were doing a BFS in the first place is because an ExplodedGraph can have cycles. Unfortunately, my removeErrorNode "update" doesn't work at all if there are cycles. I'd still like to be able to avoid doing the BFS every time, but I'll come back to it later. This reverts r177353 / 481fa5071c203bc8ba4f88d929780f8d0f8837ba. llvm-svn: 177448
-
Chad Rosier authored
llvm-svn: 177441
-
Fariborz Jahanian authored
closing rbrace is missing in an ObjC class declaration. Can do beter than this, but it involves addition of overhead which will be present in correct code. // rdar://6854840 llvm-svn: 177435
-
Daniel Jasper authored
Before: switch (x) { case 1: // Do amazing stuff { g(); f(); } } After: switch (x) { case 1: // Do amazing stuff { g(); f(); } } llvm-svn: 177420
-
Adrian Prantl authored
Relax test to allow for attributes on other architectures. Caught by powerpc64-unknown-linux-gnu buildbot. llvm-svn: 177419
-
Alexander Kornienko authored
Summary: This is implementation for /* */ comments only. Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D547 llvm-svn: 177415
-
Chad Rosier authored
llvm-svn: 177414
-
Tobias Grosser authored
The code inside cindex.py was comparing NULL pointer returned by clang_parseTranslationUnit and clang_createTranslationUnit with None. However, as illustrated by the two tests I've added, those conditions were ineffective which resulted in assert triggering later on. Instead, a pointer is now treated as a boolean value, a NULL pointer being False. Contributed-by:
Xavier Deguillard <deguilx@gmail.com> llvm-svn: 177408
-
Rafael Espindola authored
llvm-svn: 177402
-
Rafael Espindola authored
If this should not happen, we should have an assert. If it should happen, we should have a test and remove the comment. In no case should we have this self inconsistent code. llvm-svn: 177399
-
Rafael Espindola authored
-no-integrated-as. It is the only assembler we have there. llvm-svn: 177398
-
Alexey Samsonov authored
llvm-svn: 177391
-
John McCall authored
we expect a related result type. rdar://12493140 llvm-svn: 177378
-
Douglas Gregor authored
llvm-svn: 177370
-
Douglas Gregor authored
Minor optimization to r177367 to treat a module with missing dependencies as out-of-date rather than missing. llvm-svn: 177369
-
Rafael Espindola authored
The general pattern now is that Foobar::constructTool only creates tools defined in the tools::foobar namespace and then delegates to the parent. The remaining duplicated code is now in the tools themselves. llvm-svn: 177368
-
rdar://problem/13363214Douglas Gregor authored
<rdar://problem/13363214> Eliminate race condition between module rebuild and the global module index. The global module index was querying the file manager for each of the module files it knows about at load time, to prune out any out-of-date information. The file manager would then cache the results of the stat() falls used to find that module file. Later, the same translation unit could end up trying to import one of the module files that had previously been ignored by the module cache, but after some other Clang instance rebuilt the module file to bring it up-to-date. The stale stat() results in the file manager would trigger a second rebuild of the already-up-to-date module, causing failures down the line. The global module index now lazily resolves its module file references to actual AST reader module files only after the module file has been loaded, eliminating the stat-caching race. Moreover, the AST reader can communicate to its caller that a module file is missing (rather than simply being out-of-date), allowing us to simplify the module-loading logic and allowing the compiler to recover if a dependent module file ends up getting deleted. llvm-svn: 177367
-
Richard Smith authored
it wasn't taking into account that the float should be truncated *before* the range check happens. Thus (unsigned)-0.99 and (unsigned char)255.9 have defined behavior and should not be trapped. llvm-svn: 177362
-
Rafael Espindola authored
llvm-svn: 177360
-
Argyrios Kyrtzidis authored
llvm-svn: 177359
-