- Mar 26, 2012
-
-
Kostya Serebryany authored
llvm-svn: 153447
-
Benjamin Kramer authored
This makes sense because chunk's ctor is also out of line and simplifies considerably when inlined with a constant parameter. Shrinks clang on i386-linux-Release+Asserts by 65k. llvm-svn: 153446
-
Douglas Gregor authored
typo correction to introduce a nested-name-specifier; we aren't prepared to handle it here. Fixes PR12297 / <rdar://problem/11075219>. llvm-svn: 153445
-
Fariborz Jahanian authored
symbols. // rdar://11103982 llvm-svn: 153443
-
Douglas Gregor authored
InjectedClassNameType; otherwise, it won't be properly wired to the original (canonical) declaration when it is deserialized. Fixes <rdar://problem/11112464>. llvm-svn: 153442
-
Benjamin Kramer authored
Due to lack of move semantics we would create a temporary std::string from the string literal, copy it into the vector and discard the temporary. This leads to massive code bloat, optimizing it saves 50k on i386-linux-Release+Asserts. While there add a two-element overload for push_back, simplifying code a bit. llvm-svn: 153441
-
Benjamin Kramer authored
std::list is expensive, but so is std::sorting a SmallVector of SmallVectors of heavyweight PartialDiagnostics. Saves ~30k in a i386-linux-Release+Asserts clang build. llvm-svn: 153437
-
Richard Smith authored
templated functions. Build a redeclaration chain, and only instantiate the definition of the enum when visiting the defining declaration. llvm-svn: 153427
-
Richard Smith authored
enumerations in templates until the template is instantiated. llvm-svn: 153426
-
Aaron Ballman authored
Since this change is generating a considerable amount of discussion (and possibly even a regression for known bad versions), I'm reverting it. llvm-svn: 153420
-
- Mar 25, 2012
-
-
Aaron Ballman authored
Patch thanks to Nikola Smiljanic llvm-svn: 153413
-
NAKAMURA Takumi authored
llvm-svn: 153407
-
NAKAMURA Takumi authored
evaluateAsBooleanConditionNoCache(S) might update the map and invalidate the iterator. llvm-svn: 153406
-
NAKAMURA Takumi authored
On msys bash, with %pathsep==os.pathsep==';', I can see lines like below in this script; env DIR=X:/foo%{pathsep}X:/bar Then it is expanded to; env DIR=X:/foo;X:/bar It should be with quote; env "DIR=X:/foo;X:/bar" llvm-svn: 153402
-
- Mar 24, 2012
-
-
Benjamin Kramer authored
llvm-svn: 153389
-
Fariborz Jahanian authored
used in modern objc translator. // rdar://11105680 llvm-svn: 153386
-
Rafael Espindola authored
llvm-svn: 153385
-
Fariborz Jahanian authored
fields in _class_ro_t metadata. // rdar://11079898 llvm-svn: 153384
-
Rafael Espindola authored
Thanks to NAKAMURA Takumi for finding it! llvm-svn: 153383
-
NAKAMURA Takumi authored
Revert r153360 (and r153380), "Second part of PR12251. Produce the range metadata in clang for booleans and". For i686 targets (eg. cygwin), I saw "Range must not be empty!" in verifier. It produces (i32)[0x80000000:0x80000000) from (uint64_t)[0xFFFFFFFF80000000ULL:0x0000000080000000ULL), for signed i32 on MDNode::Range. llvm-svn: 153382
-
Benjamin Kramer authored
llvm-svn: 153381
-
Benjamin Kramer authored
llvm-svn: 153380
-
Jordy Rose authored
[analyzer] Tighten up the realloc() failure path note generation...make sure we get the right realloc()! llvm-svn: 153370
-
Jordy Rose authored
[analyzer] Restart path diagnostic generation if any of the visitors change the report configuration while walking the path. This required adding a change count token to BugReport, but also allowed us to ditch ImmutableList as the BugReporterVisitor data type. Also, remove the hack from MallocChecker, now that visitors appear in the opposite order. This is not exactly a fix, but the common case -- custom diagnostics after generic ones -- is now the default behavior. llvm-svn: 153369
-
Jordy Rose authored
[analyzer] Add a clone() method to BugReporterVisitor, so that we'll be able to reset diagnostic generation. llvm-svn: 153368
-
Argyrios Kyrtzidis authored
recover by returning the statements that we parsed so far, instead of dropping the whole function body. rdar://10967343 llvm-svn: 153367
-
Rafael Espindola authored
c++ enums. llvm-svn: 153360
-
Richard Smith authored
some calling code to actually pass in a non-null type, to avoid a crash. llvm-svn: 153358
-
Kostya Serebryany authored
llvm-svn: 153356
-
Argyrios Kyrtzidis authored
just because there was an attribute in front of it. llvm-svn: 153355
-
Argyrios Kyrtzidis authored
managed to insert an @interface as top level decl contained by another @interface. A commit to also not allow this as valid code will be coming. rdar://11105114. llvm-svn: 153354
-
Richard Smith authored
forward-declared enums aren't /quite/ done yet. llvm-svn: 153350
-
Richard Smith authored
a previous declaration if the redeclaration is invalid. That way lies madness. Fixes a crash-on-invalid reported by Abramo. llvm-svn: 153349
-
Akira Hatanaka authored
Patch by Simon Atanasyan. llvm-svn: 153348
-
- Mar 23, 2012
-
-
Ted Kremenek authored
llvm-svn: 153312
-
Ted Kremenek authored
Avoid applying retain/release effects twice in RetainCountChecker when a function call was inlined (i.e., we do not need to apply summaries in such cases). llvm-svn: 153309
-
Eric Christopher authored
llvm-svn: 153308
-
Richard Smith authored
class template's definition, and for explicit specializations of such enum members. llvm-svn: 153304
-
Argyrios Kyrtzidis authored
return from clang_getCursorLocation the start location of the method name. rdar://11105223 llvm-svn: 153303
-
Anton Yartsev authored
llvm-svn: 153302
-