summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Add -fsanitize=integer for reporting suspicious integer behaviors.Will Dietz2012-11-2710-44/+403
| | | | | | Introduces new sanitizer "unsigned-integer-overflow". llvm-svn: 168701
* Remove outdated FIXME; should have removed that in r160782Timur Iskhodzhanov2012-11-271-2/+0
| | | | llvm-svn: 168698
* clang/test/lit.cfg: Disable dev-fd-fs on cygwin for now.NAKAMURA Takumi2012-11-271-1/+1
| | | | | | open("/dev/fd/1-foobar") fails with EEXIST on cygwin. llvm-svn: 168676
* Test for r168674.Eli Friedman2012-11-271-0/+11
| | | | llvm-svn: 168675
* Fix the definition of the vfork() builtin on Haiku. PR14378.Eli Friedman2012-11-276-3/+20
| | | | llvm-svn: 168674
* This patch addresses an incompatibility relative to the 64-bit PowerPCBill Schmidt2012-11-272-0/+185
| | | | | | | | | | | | | | | ELF ABI. Complex values are to be passed in registers as though the real and imaginary parts were passed as separate parameters. Prior to this patch, complex values were passed as byval aggregates. It turns out that specifying getDirect() for all complex types when classifying the argument type results in the desired behavior. The new Clang test case verifies that the correct LLVM IR is generated for caller and callee for each of the underlying types for _Complex. llvm-svn: 168673
* scan-build: Respect TMPDIR on all platforms, not just Darwin (PR14438).Jordan Rose2012-11-271-7/+2
| | | | llvm-svn: 168672
* [analyzer] Fix test to work on non-LP64 systems.Jordan Rose2012-11-271-5/+8
| | | | | | Thanks for the original catch in r168303, Takumi. llvm-svn: 168671
* Add a testcase that r168411 would break.Rafael Espindola2012-11-271-0/+11
| | | | llvm-svn: 168669
* Revert r168411 for now.Rafael Espindola2012-11-271-4/+6
| | | | llvm-svn: 168667
* Duplicate some common owners between Clang and LLVM.Richard Smith2012-11-271-0/+17
| | | | llvm-svn: 168650
* Move Clang code owners list from llvm/ to cfe/.Richard Smith2012-11-271-0/+23
| | | | llvm-svn: 168639
* Frontend: Create a virtual file for named pipe inputs.Daniel Dunbar2012-11-272-4/+5
| | | | | | - This ensures we see the right buffer size for the file. llvm-svn: 168636
* Improve diagnostic on C++11 attribute specifiers that appear at wrong ↵Michael Han2012-11-264-8/+117
| | | | | | | | | | | | | syntactic locations around class specifiers. This change list implemented logic that explicitly detects several combinations of locations where C++11 attribute specifiers might be incorrectly placed within a class specifier. Previously we emit generic diagnostics like "expected identifier" for such cases; now we emit specific diagnostic against the misplaced attributes, this also fixed a bug in old code where attributes appear at legitimate locations were incorrectly rejected. Thanks to Richard Smith for reviewing! llvm-svn: 168626
* Add missing "break". Thanks to Craig for spotting it.Eli Friedman2012-11-261-0/+1
| | | | | | I'm looking at ways to fix the relevant test so it can catch this sort of mistake. llvm-svn: 168618
* check that always_inline attribute works with -fno-inlineSebastian Pop2012-11-261-1/+4
| | | | | | Clean up the existing test to use FileCheck. llvm-svn: 168607
* [analyzer] SATestBuild.py: allow make builds to disable parallelizationJordan Rose2012-11-261-1/+2
| | | | | | | | Before, SATestBuild unilaterally added '-j<n>' to every project built with 'make'. Now, we check and see if there's a -j option already specified, which allows a project to explicitly be marked '-j1'. llvm-svn: 168603
* [analyzer] Fix a crash reported in PR 14400.Anna Zaks2012-11-263-1/+8
| | | | | | | | The AllocaRegion did not have the superRegion (based on LocationContext) as part of it's hash. As a consequence, the AllocaRegions from different frames were uniqued to be the same region. llvm-svn: 168599
* MSPGCC renamed ISR vectors from vector_<address> to __isr_<number>. This ↵Anton Korobeynikov2012-11-261-2/+2
| | | | | | | | patch makes Clang reflect this scheme. Patch by Job Noorman! llvm-svn: 168598
* Fix PR14413 - incorrect mangling of anonymous namespaces with -cxx-abi microsoftTimur Iskhodzhanov2012-11-262-3/+10
| | | | llvm-svn: 168583
* PR14428: When instantiating a 'new' expression, if we had a non-dependentRichard Smith2012-11-263-25/+23
| | | | | | | | initialization, don't rebuild it. Remove a couple of hacks which were trying to work around this. Fix the special case for one-argument CXXConstructExprs to not apply if the one argument is a default argument. llvm-svn: 168582
* Add r168519 back, but with a fix to also merge the used flag in variables.Rafael Espindola2012-11-252-7/+8
| | | | llvm-svn: 168564
* Add a basic testcase for the "variable is not needed" warning and one thatRafael Espindola2012-11-251-0/+27
| | | | | | regressed in r168519. llvm-svn: 168563
* Fix test case for linking with sanitizer opts added in r168428.Alexey Samsonov2012-11-251-3/+2
| | | | llvm-svn: 168562
* Revert r168519, "Merge used flags so that we don't have to iterate on ↵NAKAMURA Takumi2012-11-242-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | isUsed. With this change" It brought bunch of (possibly false) warnings. llvm/unittests/VMCore/PassManagerTest.cpp:60:22: warning: variable 'ID' is not needed and will not be emitted [-Wunneeded-internal-declaration] char ModuleNDNM::ID=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:86:22: warning: variable 'ID' is not needed and will not be emitted [-Wunneeded-internal-declaration] char ModuleNDM2::ID=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:106:21: warning: variable 'ID' is not needed and will not be emitted [-Wunneeded-internal-declaration] char ModuleDNM::ID=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:217:16: warning: variable 'initcount' is not needed and will not be emitted [-Wunneeded-internal-declaration] int LPass::initcount=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:218:16: warning: variable 'fincount' is not needed and will not be emitted [-Wunneeded-internal-declaration] int LPass::fincount=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:259:16: warning: variable 'inited' is not needed and will not be emitted [-Wunneeded-internal-declaration] int BPass::inited=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:260:16: warning: variable 'fin' is not needed and will not be emitted [-Wunneeded-internal-declaration] int BPass::fin=0; ^ llvm/unittests/VMCore/PassManagerTest.cpp:283:24: warning: variable 'ID' is not needed and will not be emitted [-Wunneeded-internal-declaration] char OnTheFlyTest::ID=0; ^ 8 warnings generated. llvm-svn: 168549
* Make err_module_expected_semi consistent with all the other expected_semi diags.Nico Weber2012-11-241-1/+1
| | | | llvm-svn: 168535
* Sema: Provide a valid source location when instantiating templates based on ↵Benjamin Kramer2012-11-233-1/+21
| | | | | | | | a CXXDefaultArgExpr. Fixes PR13758. llvm-svn: 168521
* Merge used flags so that we don't have to iterate on isUsed. With this changeRafael Espindola2012-11-232-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | "clang -cc1 -fsyntax-only" on the preprocessed output of #define M extern int a; #define M2 M M #define M4 M2 M2 #define M8 M4 M4 #define M16 M8 M8 #define M32 M16 M16 #define M64 M32 M32 #define M128 M64 M64 #define M256 M128 M128 #define M512 M256 M256 #define M1024 M512 M512 #define M2048 M1024 M1024 #define M4096 M2048 M2048 #define M8192 M4096 M4096 #define M16384 M8192 M8192 M16384 goes from 2.994s to 1.416s. GCC is at 0.022s, so we still have a long way to go. llvm-svn: 168519
* Remove redundant check.Rafael Espindola2012-11-231-2/+3
| | | | llvm-svn: 168515
* Check that we don't warn on this testcase. This is basically a test thatRafael Espindola2012-11-231-1/+1
| | | | | | | Decl::isUsed checks the attribute. If the function had a body just the check is DeclMustBeEmitted would be sufficient. llvm-svn: 168514
* PR14306: Move -fbounds-checking to -fsanitize=bounds.Joey Gouly2012-11-2311-30/+48
| | | | llvm-svn: 168510
* Reapply a subset of r167567 to clean up Darwin-specific code for invoking gcc.Bob Wilson2012-11-233-672/+18
| | | | | | | | | | | Unlike my previous attempt at this, this patch leaves intact the check for whether clang can handle the input file type, and for non-Darwin toolchains it will invoke gcc for things it cannot handle. For Darwin toolchains, the behavior reported in pr14338 still occurs with this patch, but that is a definite improvement from what happens currently, where it just crashes with an assertion failure. llvm-svn: 168505
* Make helpers static/anonymous.Benjamin Kramer2012-11-222-3/+6
| | | | llvm-svn: 168500
* Fix regression in r168477. Use canonical decl when looking for base classRichard Smith2012-11-222-1/+10
| | | | | | specified as a qualified name. llvm-svn: 168479
* Fix CXXRecordDecl::forallBases to not look through bases which are dependentRichard Smith2012-11-226-49/+116
| | | | | | | | and defined within the current instantiation, but which are not part of the current instantiation. Previously, it would look at bases which could be specialized separately from the current template. llvm-svn: 168477
* Test that we correctly deal with multiple copy constructors when detectingRichard Smith2012-11-221-2/+13
| | | | | | non-trivial special members for varargs calls. llvm-svn: 168476
* Fix the '-fuse-init-array' option to actually be an option.Chandler Carruth2012-11-218-26/+53
| | | | | | | | | | | | | | | | | | Previously, this flag to CC1 was never exposed at the clang driver layer, and if you happened to enable it (by being on Android or GCC 4.7 platform), you couldn't *disable* it, because there was no 'no' variant. The whole thing was confusingly implemented. Now, the target-specific flag processing gets the driver arg list, and we use standard hasFlag with a default based on the GCC version and/or Android platform. The user can still pass the 'no-' variant to forcibly disable the flag, or pass the positive variant to clang itself to enable the flag. The test has also been substantially cleaned up and extended to cover these use cases. llvm-svn: 168473
* SemaCXX: an enumeral type can be of character or boolean type in a C++11 ↵Benjamin Kramer2012-11-212-26/+91
| | | | | | | | enum class. Make sure we create a literal of the right type. Fixes PR14386. llvm-svn: 168441
* Test commit: Remove blank line.Joey Gouly2012-11-211-1/+1
| | | | llvm-svn: 168436
* Try to fix test from r168428 on mingw botAlexey Samsonov2012-11-211-4/+4
| | | | llvm-svn: 168431
* clang/test/Driver/x86_64-nacl-defines.cpp: Specify filename generated.NAKAMURA Takumi2012-11-211-1/+1
| | | | | FIXME: It could be /dev/null. llvm-svn: 168429
* [Sanitizer] force linking with static sanitizer runtimes on Darwin even if ↵Alexey Samsonov2012-11-213-8/+51
| | | | | | they are not found in resource directory. Add test checking sanitizer linker flags on Darwin. llvm-svn: 168428
* Use color for -ast-dump-filter only when it is supportedDmitri Gribenko2012-11-212-4/+8
| | | | | | Patch by Philip Craig. llvm-svn: 168420
* Remove redundant code.Rafael Espindola2012-11-211-6/+4
| | | | llvm-svn: 168411
* Remove redundant code.Rafael Espindola2012-11-211-24/+3
| | | | llvm-svn: 168410
* Don't walk a linked list twice in the same function. On my machine this takesRafael Espindola2012-11-201-2/+2
| | | | | | | | "clang -cc1" on a file with 10k repetitions of extern int no_such_variable; from 1.434s to 1.133s. llvm-svn: 168394
* Update method calls to the new interface re r168354.Bill Wendling2012-11-202-3/+4
| | | | llvm-svn: 168355
* Fix some trailing whitespace (on a blank line) to cycle/test bots.David Blaikie2012-11-191-1/+1
| | | | llvm-svn: 168340
* PR14381: Never skip constexpr function bodies when code-completing. We may needRichard Smith2012-11-194-2/+42
| | | | | | them in order to parse the rest of the file. llvm-svn: 168327
* When adding a NamedDecl to a correction, add the underlying Decl (viaKaelyn Uhrain2012-11-192-1/+15
| | | | | | | | getUnderlyingDecl()) so that derivatives of CorrectionCandidateCallback::ValidateCandidate(...) don't have to worry about being thrown by UsingDecls and such. llvm-svn: 168317
OpenPOWER on IntegriCloud