summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix formatting and tabs in file.Eric Christopher2013-02-211-26/+25
| | | | llvm-svn: 175815
* Don't pass -split-dwarf= to the backend unless we're on linux forEric Christopher2013-02-212-1/+7
| | | | | | now. llvm-svn: 175814
* Remove the SplitDebug action and replace with a set of commandsEric Christopher2013-02-218-105/+57
| | | | | | | in the compilation setup. Note that this doesn't currently work for -no-integrated-as. llvm-svn: 175813
* Replace ProgramPoint llvm::cast support to be well-defined.David Blaikie2013-02-2121-185/+265
| | | | | | See r175462 for another example/more details. llvm-svn: 175812
* Remove superfluous null pointer check. The pointer is used prior to this check.Ted Kremenek2013-02-211-7/+6
| | | | llvm-svn: 175807
* AST dumping: dump template instantiations only onceDmitri Gribenko2013-02-212-2/+47
| | | | | | | | Fixes infinite loop in PR15220. Patch by Philip Craig. llvm-svn: 175805
* Remove accidentally introduced no-op line.Daniel Jasper2013-02-211-1/+0
| | | | | | | Was used during experiments, but another if-statements a few lines before makes it (intentionally) useless. llvm-svn: 175803
* Teach serialized diagnostics about notes without locations.Ted Kremenek2013-02-213-2/+18
| | | | | | | | Along the way, improve a diagnostic for "previous declaration here" for implicit parameters. Fixes <rdar://problem/13211384>. llvm-svn: 175802
* Consistently put {} onto the same line for empty functions.Daniel Jasper2013-02-213-41/+41
| | | | | | | | | | | | | | | | | This fixes llvm.org/PR15167. Before: LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL() : AAAAAAAA(10), BBBBBBBBB(10) { } LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL() : AAAAAAAA(10) {} After: LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL() : AAAAAAAA(10), BBBBBBBBB(10) {} LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL() : AAAAAAAA(10) {} llvm-svn: 175800
* Replace CFGElement llvm::cast support to be well-defined.David Blaikie2013-02-2118-112/+150
| | | | | | See r175462 for another example/more details. llvm-svn: 175796
* Patch for debug info of qualified-id types is 'id'Fariborz Jahanian2013-02-212-2/+49
| | | | | | By Adrian Pranti. llvm-svn: 175793
* Try to fix the test for cmake builds, where clang is called clang-3.3.Benjamin Kramer2013-02-211-1/+1
| | | | llvm-svn: 175791
* [scan-build] Add quotes around clang executable name to handle path withs ↵Ted Kremenek2013-02-211-1/+2
| | | | | | spaces. Fixes <rdar://problem/13254727> llvm-svn: 175790
* Try to get buildbots to pass these tests.Bill Wendling2013-02-212-10/+13
| | | | llvm-svn: 175784
* [scan-build] fix xcode version parsing to handle dot releases. Fixes ↵Ted Kremenek2013-02-211-3/+6
| | | | | | <rdar://problem/13265300>. llvm-svn: 175781
* [driver] Handle the processing of the QA_OVERRIDE_GCC3_OPTIONS and CCC_ADD_ARGSChad Rosier2013-02-212-26/+33
| | | | | | | | before the DiagnosticsEngine is instantiated. Otherwise, warning options are not handled correctly. rdar://13254743 llvm-svn: 175779
* Preprocessor: preserve whitespace in -traditional-cpp mode.Jordan Rose2013-02-215-32/+99
| | | | | | | | | Note that unlike GNU cpp we currently do not preserve whitespace in macros (even in -traditional-cpp mode). <rdar://problem/12897179> llvm-svn: 175778
* [driver] Add a dump method for ArgList.Chad Rosier2013-02-212-0/+10
| | | | llvm-svn: 175777
* Allow breaking between type and name in for loops.Daniel Jasper2013-02-213-23/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes llvm.org/PR15033. Also: Always break before a parameter, if the previous parameter was split over multiple lines. This was necessary to make the right decisions in for-loops, almost always makes the code more readable and also fixes llvm.org/PR14873. Before: for (llvm::ArrayRef<NamedDecl *>::iterator I = FD->getDeclsInPrototypeScope() .begin(), E = FD->getDeclsInPrototypeScope().end(); I != E; ++I) { } foo(bar(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccccccccccccccc), d, bar(e, f)); After: for (llvm::ArrayRef<NamedDecl *>::iterator I = FD->getDeclsInPrototypeScope().begin(), E = FD->getDeclsInPrototypeScope().end(); I != E; ++I) { } foo(bar(bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, ccccccccccccccccccccccccccccc), d, bar(e, f)); llvm-svn: 175741
* Add MSan to the list of targets in Makefile-based builds.Evgeniy Stepanov2013-02-211-1/+2
| | | | llvm-svn: 175738
* Add a 64-bit triple to these tests, to fix 32-bit bots.Joey Gouly2013-02-213-3/+3
| | | | llvm-svn: 175736
* Fix an OpenCL test case. Pointer arguments to kernels must be declared with theJoey Gouly2013-02-211-1/+1
| | | | | | __global, __constant or __local qualifier. llvm-svn: 175735
* Add support to Sema and CodeGen for floating point vector types in OpenCL.Joey Gouly2013-02-215-16/+236
| | | | llvm-svn: 175734
* Correct spelling of 'enumerator'.David Blaikie2013-02-211-1/+1
| | | | | | Post commit code review feedback to r175705 from Jordan Rose. llvm-svn: 175725
* Avoid implicit conversions of Optional<T> to bool.David Blaikie2013-02-213-5/+5
| | | | | | | This is a precursor to making Optional<T>'s operator bool 'explicit' when building Clang & LLVM as C++11. llvm-svn: 175722
* StaticAnalyzer/Core: Suppress warnings. [-Wunused-variable, -Wunused-function]NAKAMURA Takumi2013-02-211-2/+3
| | | | llvm-svn: 175721
* Whitespace.NAKAMURA Takumi2013-02-211-1/+1
| | | | llvm-svn: 175720
* [analyzer] Record whether a base object region represents a virtual base.Jordan Rose2013-02-216-60/+84
| | | | | | | | | This allows MemRegion and MemRegionManager to avoid asking over and over again whether an class is a virtual base or a non-virtual base. Minor optimization/cleanup; no functionality change. llvm-svn: 175716
* [analyzer] Add another reinterpret_cast behavior test.Jordan Rose2013-02-211-0/+18
| | | | | | | The test is similar to <rdar://problem/13239840> but doesn't actually test the case that fails there. It's still a good test, though. llvm-svn: 175715
* [analyzer] Tidy up a few uses of Optional in RegionStore.Jordan Rose2013-02-211-10/+7
| | | | | | | | | Some that I just added needed conversion to use 'None', others looked better using Optional<SVal>::create. No functionality change. llvm-svn: 175714
* CIndex.cpp: Appease g++-4.4. "if (Optional<unsigned> Minor = In.getMinor())" ↵NAKAMURA Takumi2013-02-211-2/+4
| | | | | | did not work as expected. llvm-svn: 175711
* libstdc++'s <cstdalign> #includes <stdalign.h> and expects it to guard againstRichard Smith2013-02-212-0/+17
| | | | | | | | | being included in C++. Don't define alignof or alignas in this case. Note that the C++11 standard is broken in various ways here (it refers to the contents of <stdalign.h> in C99, where that header did not exist, and doesn't mention the alignas macro at all), but we do our best to do what it intended. llvm-svn: 175708
* Respect -fno-canonical-prefixes when deciding where to generate .gcno and .gcdaNick Lewycky2013-02-211-3/+7
| | | | | | files. llvm-svn: 175706
* Use None rather than Optional<T>() where possible.David Blaikie2013-02-2126-60/+61
| | | | llvm-svn: 175705
* Rename TypeLoc's isType to isKindDavid Blaikie2013-02-212-21/+21
| | | | | | | | | | Matches changes made to SVal's similar functions based on Jordan Rose's review feedback to r175594. Also change isKind to take a reference rather than a non-null pointer, while I'm at it. (& make TypeLoc::isKind private) llvm-svn: 175704
* [analyzer] Tighten up safety in the use of lazy bindings.Jordan Rose2013-02-213-71/+115
| | | | | | | | | | | | | | | - When deciding if we can reuse a lazy binding, make sure to check if there are additional bindings in the sub-region. - When reading from a lazy binding, don't accidentally strip off casts or base object regions. This slows down lazy binding reading a bit but is necessary for type sanity when treating one class as another. A bit of minor refactoring allowed these two checks to be unified in a nice early-return-using helper function. <rdar://problem/13239840> llvm-svn: 175703
* Strip 'llvm' from 'llvm::Optional' uses.Ted Kremenek2013-02-213-9/+9
| | | | llvm-svn: 175701
* Remove commented out code.Richard Trieu2013-02-211-1/+1
| | | | llvm-svn: 175699
* objective-C arc IR-gen. Retaining of strongFariborz Jahanian2013-02-218-23/+35
| | | | | | | | | | arguments in function prologue is done with objc_StoreStrong to pair it with similar objc_StoreStrong for release in function epilogue. This is done with -O0 only. // rdar://13145317 llvm-svn: 175698
* Mark unimplemented function with LLVM_DELETED_FUNCTIONDavid Blaikie2013-02-211-1/+1
| | | | llvm-svn: 175695
* Doxycomment SVal's getAs/castAs.David Blaikie2013-02-212-0/+9
| | | | | | | | Also document TypeLoc's operations similarly, since it's a good idea. Post-commit CR feedback from Anna Zaks regarding r175594. llvm-svn: 175694
* Revert "intmax_t is long long on Darwin, not long."Jordan Rose2013-02-203-26/+1
| | | | | | | | | 'long' and 'long long' are different for the purposes of mangling. This caused <rdar://problem/13254874>. This reverts commit c2f994d31ec85e9af811af38eb1b28709aef0b2c. llvm-svn: 175681
* MCParser: Update method names per coding guidelines.Jim Grosbach2013-02-201-1/+1
| | | | | | s/ParseMSInlineAsm/parseMSInlineAsm/ llvm-svn: 175680
* Include llvm::Optional in clang/Basic/LLVM.hDavid Blaikie2013-02-2079-425/+374
| | | | | | Post-commit CR feedback from Jordan Rose regarding r175594. llvm-svn: 175679
* Remove redundant Optional type in favor of llvm::OptionalDavid Blaikie2013-02-201-24/+4
| | | | llvm-svn: 175678
* Use op-> directly rather than via Optional<T>::getPointer.David Blaikie2013-02-201-2/+2
| | | | | | Post-commit CR feedback from Jordan Rose regarding r175594. llvm-svn: 175677
* Rename SVal::isType functions to SVal::isKindDavid Blaikie2013-02-201-24/+24
| | | | | | Post-commit CR feedback from Jordan Rose regarding r175594. llvm-svn: 175676
* PR15311: Finish implementation of the suggested resolution of core issue 1488,Richard Smith2013-02-204-2/+15
| | | | | | | | which allows grouping parens in an abstract-pack-declarator. This was already mostly implemented, but missed some cases. Add an ExtWarn for use of this extension until CWG ratifies it. llvm-svn: 175660
* Attempt to clean up tests for non-X86 platforms.Bill Wendling2013-02-209-76/+67
| | | | llvm-svn: 175652
* Process and handle attributes on conditions and for loop variables. Process andRichard Smith2013-02-2011-35/+86
| | | | | | | diagnose attributes on alias declarations, using directives, and attribute declarations. llvm-svn: 175649
OpenPOWER on IntegriCloud