- Apr 15, 2011
-
-
Chris Lattner authored
Luis Felipe Strano Moraes! llvm-svn: 129559
-
- Mar 26, 2011
-
-
- Mar 21, 2011
-
-
Ted Kremenek authored
llvm-svn: 128010
-
Ted Kremenek authored
llvm-svn: 128009
-
- Jan 31, 2011
-
-
Douglas Gregor authored
client. Fixes a libclang leak. llvm-svn: 124614
-
- Jan 14, 2011
-
-
Argyrios Kyrtzidis authored
Addresses rdar://8435969&8852495 llvm-svn: 123462
-
- Dec 15, 2010
-
-
Argyrios Kyrtzidis authored
Diagnostic pragmas are broken because we don't keep track of the diagnostic state changes and we only check the current/latest state. Problems manifest if a diagnostic is emitted for a source line that has different diagnostic state than the current state; this can affect a lot of places, like C++ inline methods, template instantiations, the lexer, etc. Fix the issue by having the Diagnostic object keep track of the source location of the pragmas so that it is able to know what is the diagnostic state at any given source location. Fixes rdar://8365684. llvm-svn: 121873
-
- Nov 19, 2010
-
-
Benjamin Kramer authored
llvm-svn: 119808
-
Douglas Gregor authored
option name, category ID, and category name corresponding to a diagnostic. llvm-svn: 119802
-
- Nov 18, 2010
-
-
Argyrios Kyrtzidis authored
of the total number of warnings/errors reported. llvm-svn: 119731
-
Argyrios Kyrtzidis authored
-Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class. -DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units. -The rest of the state in Diagnostic object is considered related and tied to one translation unit. -Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a SourceLocation instead of a FullSourceLoc. -Reflect the changes to various interfaces. llvm-svn: 119730
-
- Oct 14, 2010
-
-
John McCall authored
llvm-svn: 116468
-
- Oct 13, 2010
-
-
Douglas Gregor authored
SFINAE context, where we weren't getting the right diagnostic argument count. I blame DiagnosticBuilder's weirdness. Fixes PR8372. llvm-svn: 116411
-
- Oct 12, 2010
-
-
Douglas Gregor authored
emitting diagnostics in a binary form to be consumed by libclang, since libclang no longer does any of its work out-of-process, making this code dead. Besides, this stuff never worked at 100% anyway. llvm-svn: 116250
-
- Aug 18, 2010
-
-
Douglas Gregor authored
location. Patch by Eelis van der Weegen! llvm-svn: 111362
-
Chandler Carruth authored
only warnings did this check. llvm-svn: 111355
-
- Aug 15, 2010
-
-
Argyrios Kyrtzidis authored
llvm-svn: 111091
-
- Aug 02, 2010
-
-
Eli Friedman authored
randomly. This makes us consistently show "-pedantic" as the warning option for a warning where appropriate. llvm-svn: 109987
-
- Jul 31, 2010
-
-
Douglas Gregor authored
the files in the precompiled preamble have changed since it was build, force the preamble to be rebuilt. llvm-svn: 109937
-
- Jul 26, 2010
-
-
Dan Gohman authored
llvm-svn: 109440
-
- Jul 25, 2010
-
-
Benjamin Kramer authored
into other code. Make it an array instead of a constant-length vector. llvm-svn: 109384
-
- Jul 19, 2010
-
-
Douglas Gregor authored
reparses an already-parsed translation unit. At the moment it's just a convenience function, but we hope to use it for performance optimizations. llvm-svn: 108756
-
- Jun 19, 2010
-
-
Chris Lattner authored
to use them instead of SourceRange. CharSourceRange is just a SourceRange plus a bool that indicates whether the range has the end character resolved or whether the end location is the start of the end token. While most of the compiler wants to think of ranges that have ends that are the start of the end token, the printf diagnostic stuff wants to highlight ranges within tokens. This is transparent to the diagnostic stuff. To start taking advantage of the new capabilities, you can do something like this: Diag(..) << CharSourceRange::getCharRange(Begin,End) llvm-svn: 106338
-
- Jun 11, 2010
-
-
Jeffrey Yasskin authored
candidates printed. We default to 'all'. At the moment, 'best' prints only the first 4 overloads, but we'll improve that over time. llvm-svn: 105815
-
- May 13, 2010
-
-
Chandler Carruth authored
than 127 groups so this was already failing given -fsigned-char. A subsequent to commit to TableGen will generate shorts for the arrays themselves. llvm-svn: 103703
-
- May 04, 2010
-
-
Chris Lattner authored
print the diagnostic category number in the [] at the end of the line. For example: $ cat t.c #include <stdio.h> void foo() { printf("%s", 4); } $ clang t.c -fsyntax-only -fdiagnostics-print-source-range-info t.c:3:11:{3:10-3:12}{3:15-3:16}: warning: conversion specifies type 'char *' but the argument has type 'int' [-Wformat,1] printf("%s", 4); ~^ ~ 1 warning generated. Clients that want category information can now pick the number out of the output, rdar://7928231. More coming. llvm-svn: 103053
-
Chris Lattner authored
and diagnostic groups. This allows the compiler to group diagnostics together (e.g. "Logic Warning", "Format String Warning", etc) like the static analyzer does. This is not exposed through anything in the compiler yet. llvm-svn: 103051
-
- Apr 20, 2010
-
-
Douglas Gregor authored
we will print with each error that occurs during template instantiation. When the backtrace is longer than that, we will print N/2 of the innermost backtrace entries and N/2 of the outermost backtrace entries, then skip the middle entries with a note such as: note: suppressed 2 template instantiation contexts; use -ftemplate-backtrace-limit=N to change the number of template instantiation entries shown This should eliminate some excessively long backtraces that aren't providing any value. llvm-svn: 101882
-
- Apr 15, 2010
-
-
Douglas Gregor authored
separate count of "suppressed" errors. This way, semantic analysis bits that depend on the error count to determine whether problems occured (e.g., some template argument deduction failures, jump-scope checking) will not get confused. The actual problem here is that a missing #include (which is a fatal error) could cause the jump-scope checker to run on invalid code, which it is not prepared to do. Trivial fix for both <rdar://problem/7775941> and <rdar://problem/7775709>. llvm-svn: 101297
-
- Apr 12, 2010
-
-
Chris Lattner authored
actually turned it on. If a diag is produced by a warning which is an extension but defaults to on, and has no warning group, don't print any option info. llvm-svn: 101071
-
Ted Kremenek authored
llvm-svn: 101060
-
- Apr 07, 2010
-
-
Chris Lattner authored
llvm-svn: 100687
-
Chris Lattner authored
Right now the limit is 0 (aka disabled) llvm-svn: 100684
-
Chris Lattner authored
of errors and warnings. This allows us to emit something like this: 2 warnings and 1 error generated. instead of: 3 diagnostics generated. This also stops counting 'notes' because they are just follow-on information about the previous diag, not a diagnostic in themselves. llvm-svn: 100675
-
- Mar 31, 2010
-
-
Douglas Gregor authored
the C-only "optimization". llvm-svn: 100022
-
Douglas Gregor authored
llvm-svn: 100018
-
Douglas Gregor authored
term "fix-it" everywhere and even *I* get tired of long names sometimes. No functionality change. llvm-svn: 100008
-
- Mar 30, 2010
-
-
Douglas Gregor authored
cache of PartialDiagnostic::Storage objects into an allocator within the ASTContext. This eliminates a significant amount of malloc traffic, for a 10% performance improvement in -fsyntax-only wall-clock time with 403.gcc's combine.c. Also, eliminate the RequireNonAbstractType hack I put in earlier, which was but a symptom of this larger problem. Fixes <rdar://problem/7806091>. llvm-svn: 99849
-
- Mar 25, 2010
-
-
Douglas Gregor authored
how to handle a diagnostic during template argument deduction, which may be "substitution failure", "suppress", or "report". This keeps us from, e.g., emitting warnings while performing template argument deduction. llvm-svn: 99560
-
- Mar 22, 2010
-
-
Douglas Gregor authored
llvm-svn: 99178
-