summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fix FileCheck --check-prefix lines.Tim Northover2013-08-12103-242/+242
| | | | | | | | | | Various tests had sprung up over the years which had --check-prefix=ABC on the RUN line, but "CHECK-ABC:" later on. This happened to work before, but was strictly incorrect. FileCheck is getting stricter soon though. Patch by Ron Ofir. llvm-svn: 188174
* clang-format: Correctly format alias declarations.Daniel Jasper2013-08-123-7/+13
| | | | | | | | | | | | | | Before: template <class CallbackClass> using MyCallback = void(CallbackClass::*)(SomeObject * Data);"); After: template <class CallbackClass> using MyCallback = void (CallbackClass::*)(SomeObject *Data);"); Also fix three wrong indentations. llvm-svn: 188172
* Use new llvm::SpecialCaseList API in CodeGenModuleAlexey Samsonov2013-08-122-19/+17
| | | | llvm-svn: 188170
* This change fixes the formatting of statements such as catch (E& e).Manuel Klimek2013-08-122-1/+12
| | | | | | | | | Previously these were formatting as catch (E & e) because the inner parenthesis was being marked as an expression. Patch by Thomas Gibson-Robinson. llvm-svn: 188153
* Fix misindentation.Richard Smith2013-08-121-11/+11
| | | | llvm-svn: 188151
* Omit llvm:: before StringRef and SmallString. We have using directive in ↵Robert Wilhelm2013-08-102-4/+3
| | | | | | include/clang/Basic/LLVM.h. llvm-svn: 188139
* Omit llvm:: before SmallVector and SmallVectorImpl. We have using directive ↵Robert Wilhelm2013-08-105-21/+20
| | | | | | in include/clang/Basic/LLVM.h. llvm-svn: 188138
* Fix to PR16225 (Assert-on-invalid: isa<LabelDecl>(D) && "declaration not ↵Serge Pavlov2013-08-102-0/+16
| | | | | | | | instantiated in this scope") Differential Revision: http://llvm-reviews.chandlerc.com/D920 llvm-svn: 188137
* Added source locs for angled parentheses in class/var template partial specs.Enea Zaffanella2013-08-1013-91/+94
| | | | llvm-svn: 188134
* Avoid spurious error messages if parent template class cannot be instantiatedSerge Pavlov2013-08-104-6/+72
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D924 llvm-svn: 188133
* Fix warning in builds without asserts.Rafael Espindola2013-08-101-0/+1
| | | | llvm-svn: 188132
* Simplify now that llvm::sys::current_path checks $PWD.Rafael Espindola2013-08-105-40/+21
| | | | llvm-svn: 188128
* [analyzer] Update Open Projects and Potential Checkers pages.Jordan Rose2013-08-102-1/+61
| | | | | | | | | - va_list checker (PR16811 and PR16812) - Model floating-point values - Bound bitwise masking operations (PR16615) - Bound C string length (PR16558 and others) llvm-svn: 188127
* clang/test/Driver/cl-options.c: Suppress this on cygming due to -fno-builtin.NAKAMURA Takumi2013-08-101-0/+2
| | | | llvm-svn: 188126
* Correctly profile CXXPseudoDestructorExprs.Eli Friedman2013-08-092-2/+15
| | | | | | CXXPseudoDestructorExprs may not contain a type. PR16852. llvm-svn: 188123
* Expose LambdaIntroducer::DefaultLoc in the AST's LambdaExpr.James Dennett2013-08-099-20/+70
| | | | | | | | | | | | | | | | | | | | | Summary: Source-centric tools need access to the location of a C++11 lambda expression's capture-default ('&' or '=') when it's present. It's possible for them to find it by re-lexing and re-implementing rules that Clang's parser has already applied, but the cost of storing the SourceLocation and making it available to them is 32 bits per LambdaExpr (a small delta, proportionally), and the simplification in client code is significant. Reviewers: rsmith Reviewed By: rsmith CC: cfe-commits, klimek, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1192 llvm-svn: 188121
* Fix typo in template diffing docs.Richard Trieu2013-08-091-1/+1
| | | | llvm-svn: 188120
* Fix for PR16570: when comparing two function pointers, discard qualifiers whenRichard Trieu2013-08-092-1/+54
| | | | | | | | | | comparing non-reference function parameters. The qualifiers don't matter for comparisons. This is a re-commit of r187769, which was accidentially reverted in r187770, with a simplification at the suggestion of Eli Friedman. llvm-svn: 188112
* [arcmt] When handling unbridged casts, handle the body of BlockDecl ↵Argyrios Kyrtzidis2013-08-092-1/+20
| | | | | | | | | | separately because ParentMap does not record Stmt parent nodes inside a BlockDecl. Fixes rdar://14686900 llvm-svn: 188101
* Omit llvm:: before ArrayRef, as we have using llvm::ArrayRef in ↵Robert Wilhelm2013-08-097-35/+28
| | | | | | include/clang/Basic/LLVM.h. llvm-svn: 188089
* Remove "static" on simple temporary StringRef.Benjamin Kramer2013-08-091-1/+1
| | | | llvm-svn: 188088
* clang-cl: Don't pass /defaultlib to the linkerHans Wennborg2013-08-091-1/+2
| | | | | | | Since r187945, clang-cl will add the runtime library dependency to the .obj file. llvm-svn: 188086
* Only emit debug info for implicit members that actually get codegen, not ↵David Blaikie2013-08-094-35/+32
| | | | | | | | | | | | just ODR use. This includes special members (copy/default ctor, copy assign, default ctor) and template specializations for member function templates. Good for a 5% decrease (1.80 to 1.71 GB) in size on Clang+LLVM's .dwo files (when using fission). llvm-svn: 188085
* Add a convenient way to compare GCCVersions without creating temporary objects.Benjamin Kramer2013-08-092-16/+21
| | | | | | No functionality change. llvm-svn: 188084
* DirectIvarAssignment: Replace vtable'd objects with simple functions.Benjamin Kramer2013-08-091-31/+19
| | | | | | Avoids unnecessary static constructors. llvm-svn: 188083
* [tests] Update to use lit_config and lit package, as appropriate.Daniel Dunbar2013-08-094-39/+46
| | | | llvm-svn: 188072
* Fixup for r188058: assume hasAsanZeroBaseShadow() is false if ASan is not neededAlexey Samsonov2013-08-092-0/+5
| | | | llvm-svn: 188068
* Add lrint to the list of math builtins. It never sets errno so we can mark ↵Benjamin Kramer2013-08-092-9/+22
| | | | | | it as readnone. llvm-svn: 188065
* Put back a microoptimization with a comment to make it more obvious.Benjamin Kramer2013-08-091-2/+5
| | | | llvm-svn: 188063
* Sema: Assertion failure during CodeGen in CodeGenModule::EmitUuidofInitializerDavid Majnemer2013-08-092-21/+18
| | | | | | | | | Make sure we can properly generate code when the UUID has curly braces on it, strip the curly braces at the sema layer. This fixes PR16813. llvm-svn: 188061
* [-cxx-abi microsoft] Mangle UUIDs correctly, stick them in the proper sectionDavid Majnemer2013-08-092-15/+16
| | | | | | Revert r188055 which reverted r188053. An unrelated change previously snuck in. llvm-svn: 188060
* [analyzer] Enable usage of temporaries in InitListExprsPavel Labath2013-08-092-2/+36
| | | | | | | | | | | | | | | | | | Summary: ExprEngine had code which specificaly disabled using CXXTempObjectRegions in InitListExprs. This was a hack put in r168757 to silence a false positive. The underlying problem seems to have been fixed in the mean time, as removing this code doesn't seem to break anything. Therefore I propose to remove it and solve PR16629 in the process. Reviewers: jordan_rose CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1325 llvm-svn: 188059
* Make SanitizerArgs parsing toolchain-independentAlexey Samsonov2013-08-094-35/+51
| | | | llvm-svn: 188058
* Use isCharInSet from llvm/Support/UnicodeCharRanges.h, added a test for ↵Alexander Kornienko2013-08-091-89/+1
| | | | | | | | | | | | | | | | double-width characters in FixIt-hints. Summary: This is a follow-up to r187837. Reviewers: gribozavr, jordan_rose Reviewed By: jordan_rose CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1306 llvm-svn: 188056
* Revert "[-cxx-abi microsoft] Mangle UUIDs correctly, stick them in the ↵David Majnemer2013-08-093-17/+19
| | | | | | | | | | proper section" This commit reverts r188053. It is breaking the build bots. llvm-svn: 188055
* [-cxx-abi microsoft] Mangle UUIDs correctly, stick them in the proper sectionDavid Majnemer2013-08-093-19/+17
| | | | | | | | | | | | We mangled them like: L___uuid_12345678-1234-1234-1234-123456789abc We should've mangled them like: __GUID_12345678_1234_1234_1234_123456789abc Furthermore, they are external symbols. llvm-svn: 188053
* Implement [class.friend]p11's special name lookup rules for friend declarationsRichard Smith2013-08-0911-91/+219
| | | | | | | | of local classes. We were previously handling this by performing qualified lookup within a function declaration(!!); replace it with the proper scope lookup. llvm-svn: 188050
* [analyzer] Warn when using 'delete' on an uninitialized variable.Jordan Rose2013-08-092-1/+61
| | | | | | Patch by Karthik Bhat, modified slightly by me. llvm-svn: 188043
* [tests] Make string encoding issues explicit.Daniel Dunbar2013-08-091-0/+1
| | | | llvm-svn: 188042
* [tests] Avoid deprecated except syntax.Daniel Dunbar2013-08-092-2/+8
| | | | llvm-svn: 188041
* clang-cl: Support /showIncludesHans Wennborg2013-08-0911-13/+48
| | | | | | | | | | This option prints information about #included files to stderr. Clang could already do it, this patch just teaches the existing code about the /showIncludes style and adds the flag. Differential Revision: http://llvm-reviews.chandlerc.com/D1333 llvm-svn: 188037
* clang-cl: Map /Oi[-] to -f[no-]builtinHans Wennborg2013-08-082-2/+11
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1328 llvm-svn: 188027
* unbreak buildbot on Windows.Fariborz Jahanian2013-08-081-1/+1
| | | | llvm-svn: 188018
* ObjectiveC migrator: tighten rule about when toFariborz Jahanian2013-08-083-8/+8
| | | | | | | migrate to @property with getter name starting with 'is'. llvm-svn: 188013
* ObjectiveC migration: Handle another special case ofFariborz Jahanian2013-08-083-18/+85
| | | | | | | setter/getter methods which can be migrated to a @property. llvm-svn: 188005
* clang-cl: use MS C++ ABIHans Wennborg2013-08-082-0/+10
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1329 llvm-svn: 188000
* Fix alignof computation of large arrays on x86_64.Rafael Espindola2013-08-085-22/+24
| | | | | | | | | | | We were exposing the extra alignment given to large arrays. The new behavior matches gcc, which is a good thing since this is a gcc extension. Thanks to Joerg Sonnenberger for noticing it. While at it, centralize the method description in the .h file. llvm-svn: 187999
* Revert "clang-cl: Hook up /Za to prevent adding oldnames.lib dependency"Reid Kleckner2013-08-083-17/+5
| | | | | | | | This reverts commit r187991 and adjusts the comment. /Za is much more involved, and we don't want to give anyone the impression we actually support it. llvm-svn: 187998
* Add clang_Location_isFromMainFile() to libclang.Stefanus Du Toit2013-08-083-1/+19
| | | | | | | | Also bump the minor version number and update libclang.exports. Reviewed by: Dmitri Gribenko, Doug Gregor llvm-svn: 187994
* Remove misleading comment about using cc1 option table.Hans Wennborg2013-08-081-4/+4
| | | | | | There hasn't been a separate cc1 option table since r155916. llvm-svn: 187993
OpenPOWER on IntegriCloud