- Jan 20, 2012
-
-
David Blaikie authored
llvm-svn: 148577
-
Ted Kremenek authored
Add ability to specifiy 'restrict' on parameters of builtins, and correct this oversight for scanf functions. llvm-svn: 148573
-
Ted Kremenek authored
llvm-svn: 148567
-
Anna Zaks authored
llvm-svn: 148566
-
Fariborz Jahanian authored
which have same semantics in mrr as well as arr. // rdar://10688312 llvm-svn: 148559
-
Kostya Serebryany authored
llvm-svn: 148554
-
Argyrios Kyrtzidis authored
expansion, in which case it returns a file range in the location where the argument was spelled. llvm-svn: 148551
-
Benjamin Kramer authored
llvm-svn: 148549
-
Douglas Gregor authored
the front end into its own class, FrontendInputFile, to make it easier to introduce new per-input data. No functionality change. llvm-svn: 148546
-
Benjamin Kramer authored
Found by the clang static analyzer. llvm-svn: 148544
-
Benjamin Kramer authored
Found by clang's own static analyzer. llvm-svn: 148542
-
Ted Kremenek authored
Reenable DeadStoresChecker under --analyze, and move the IdempotentOperationsChecker to the 'experimental' category. Fixes <rdar://problem/10146347>. llvm-svn: 148533
-
Ted Kremenek authored
Implement checker that looks for calls to mktemps and friends that have fewer than 6 Xs. Implements <rdar://problem/6336672>. llvm-svn: 148531
-
Ted Kremenek authored
multiple checks are exposed as separate checkers, but CheckerManager only creates one Checker object. llvm-svn: 148525
-
Eli Friedman authored
Remove PotentiallyPotentiallyEvaluated, and replace it with a much simpler and less error-prone way of handling the relevant cases. Towards marking of whether a declaration is used more accurately. llvm-svn: 148522
-
Anna Zaks authored
llvm-svn: 148518
-
Anna Zaks authored
printing. llvm-svn: 148517
-
Anna Zaks authored
at the given location. This could be useful when checkers' logic depends on whether a function is called with a given macro argument. llvm-svn: 148516
-
- Jan 19, 2012
-
-
Richard Smith authored
constexpr. llvm-svn: 148505
-
Richard Trieu authored
!=, %=, ^=, &=, *=, -=, |=, /=, <<=, <=, >=, and >>= to =. llvm-svn: 148499
-
Argyrios Kyrtzidis authored
that the given source range encompasses. llvm-svn: 148481
-
Argyrios Kyrtzidis authored
and returns a character range with file locations. llvm-svn: 148480
-
Argyrios Kyrtzidis authored
start/end location. It is commonly needed after calling the function; with this way we avoid recalculating it. llvm-svn: 148479
-
Evgeniy Stepanov authored
These declarations come from the sample code in the "Exception Handling ABI for the ARM Architecture" document. llvm-svn: 148469
-
Tanya Lattner authored
Change CheckVectorLogicalOperands to pass params by ref. Add another test case. llvm-svn: 148452
-
Kaelyn Uhrain authored
llvm-svn: 148441
-
Richard Smith authored
values and non-type template arguments of integral and enumeration types. This change causes some legal C++98 code to no longer compile in C++11 mode, by enforcing the C++11 rule that narrowing integral conversions are not permitted in the final implicit conversion sequence for the above cases. llvm-svn: 148439
-
- Jan 18, 2012
-
-
Richard Trieu authored
Change the error when a '+=' follows a declaration to suggest a fixit to '=' instead of just suggesting a ';'. Old error: plusequaldeclare1.cc:3:8: error: expected ';' at end of declaration int x += 6; ^ ; New error: plusequaldeclare1.cc:3:9: error: invalid '+=' at end of declaration; did you mean '='? int x += 6; ^~ = llvm-svn: 148433
-
Kaelyn Uhrain authored
Includes tests highlighting the cases where accuracy has improved (there is one call that does no filtering beyond selecting the set of allowed keywords, and one call that only triggers for ObjC code for which a test by someone who knows ObjC would be welcome). Also fixes a small typo in one of the suggestion messages, and drops a malformed "expected-note" for a suggestion that did not occur even when the malformed note was committed as r145930. llvm-svn: 148420
-
Douglas Gregor authored
generational scheme for identifiers that avoids searching the hash tables of a given module more than once for a given identifier. Previously, loading any new module invalidated all of the previous lookup results for all identifiers, causing us to perform the lookups repeatedly. llvm-svn: 148412
-
Anna Zaks authored
into Lexer and Preprocessor; making it widely available. llvm-svn: 148410
-
Fariborz Jahanian authored
in favor of usage of api's intended for. // rdar://8290002 llvm-svn: 148404
-
Douglas Gregor authored
also needs -fcxx-modules to enable modules for C++/Objective-C++. llvm-svn: 148393
-
Seth Cantrell authored
llvm-svn: 148391
-
Seth Cantrell authored
L'x' is actually wchar_t support C11 u and U char literals llvm-svn: 148390
-
Seth Cantrell authored
Updates ProcessUCNExcape() for C++. C++11 allows UCNs in character and string literals that represent control characters and basic source characters. Also C++03 allows UCNs that refer to surrogate codepoints. UTF-8 sequences in character literals are now handled as single c-chars. Added error for multiple characters in Unicode character literals. Added errors for when a the execution charset encoding of a c-char cannot be represented as a single code unit in the associated character type. Note that for the purposes of this error the asso- ciated character type for a narrow character literal is char, not int, even though in C narrow character literals have type int. llvm-svn: 148389
-
Seth Cantrell authored
llvm-svn: 148388
-
Kaelyn Uhrain authored
No new unit tests yet as there is no behavioral change (except for slightly more specific filtering in Sema::ActOnStartOfLambdaDefinition). Tests will be added as the code paths are traced in greater depth to determine how to improve the results--there are at least one or two known bugs that require those improvements. This commit lays the groundwork for those changes. llvm-svn: 148382
-
Richard Smith authored
for it to be used in converted constant expression checking, and fix a couple of issues: - Conversion operators implicitly invoked prior to the narrowing conversion were not being correctly handled when determining whether a constant value was narrowed. - For conversions from floating-point to integral types, the diagnostic text incorrectly always claimed that the source expression was not a constant expression. llvm-svn: 148381
-
Eli Friedman authored
Make PotentiallyPotentiallyEvaluated contexts work correctly when referencing a class field from outside an instance method. llvm-svn: 148376
-