- Jan 04, 2013
-
-
Ted Kremenek authored
NSErrorChecker: remove quoting the parameter name in the diagnostic until we actually include it's name. This is a possible regression of moving to using ImplicitNullDerefEvent. Fixing this for real (including the parameter name) requires more plumbing in ImplicitNullDerefEvent. This is just a stop gap fix. llvm-svn: 171502
-
Ted Kremenek authored
llvm-svn: 171501
-
Douglas Gregor authored
llvm-svn: 171497
-
Daniel Jasper authored
This prevents code like: namespace { class Foo { Foo( }; } // comment from causing segfaults (see llvm.org/PR14774). llvm-svn: 171495
-
Filipe Cabecinhas authored
llvm-svn: 171494
-
Manman Ren authored
The line information was changed when emitting debug information for all the DeclRefExprs and we should change it back to get ready for PopClenupBlocks called from FinishFunction. rdar://11562117 llvm-svn: 171493
-
Fariborz Jahanian authored
to match those foung in objc.h an avoid spurious warnings. // rdar://12489098 llvm-svn: 171492
-
Argyrios Kyrtzidis authored
Uses of clang_getSpellingLocation should eventually move to calling clang_getFileLocation, and clang_getSpellingLocation should do what its name represents and actually point at the 'spelling' location, e.g. inside a macro definition if the spelling of a token came from that. llvm-svn: 171486
-
Argyrios Kyrtzidis authored
rdar://11074996 llvm-svn: 171485
-
Argyrios Kyrtzidis authored
variable, thus emitting the "switch case is in protected scope" error. rdar://12952016 llvm-svn: 171484
-
Argyrios Kyrtzidis authored
llvm-svn: 171483
-
Argyrios Kyrtzidis authored
rdar://12952025 llvm-svn: 171482
-
-
Eric Christopher authored
field number was 0 anyhow. llvm-svn: 171472
-
- Jan 03, 2013
-
-
Rafael Espindola authored
To do so we have to wait until we know that the type of a variable has been deduced. Sema::FinalizeDeclaration is the first callback that is used for decl with or without initializers. llvm-svn: 171458
-
Rafael Espindola authored
llvm-svn: 171457
-
Argyrios Kyrtzidis authored
c = Block_copy(b); Block_release(c); ----> c = [b copy]; <removed> rdar://9408211 llvm-svn: 171454
-
Ted Kremenek authored
llvm-svn: 171440
-
Ted Kremenek authored
llvm-svn: 171439
-
Eli Friedman authored
static local variable from the parent scope. PR14773. llvm-svn: 171433
-
Anna Zaks authored
This better reflects when callback is called and what the checkers are relying on. (Both names meant the same pre-IPA.) llvm-svn: 171432
-
Sean Silva authored
llvm-svn: 171426
-
Sean Silva authored
This is just the output of sphinx-quickstart. Now all that is needed to begin converting the analyzer docs to reST is the server-side setup. The analyzer folks have asked me to keep this segregated from the other clang docs since the analyzer is a logically separate project (and has its own separate web page) even though it resides in the clang tree. llvm-svn: 171425
-
- Jan 02, 2013
-
-
Sean Silva authored
This paves the way for converting the analyzer docs to Sphinx (by setting up a nested Sphinx tree in this directory). llvm-svn: 171424
-
Argyrios Kyrtzidis authored
Patch by Matthew King! llvm-svn: 171423
-
Dmitri Gribenko authored
llvm-svn: 171422
-
Argyrios Kyrtzidis authored
Patch by Will Dietz: Minor touchup so the values of Offset/ID reflect their intention. Previously, the sum (Offset+ID) was correct, but Offset/ID individually were wrong. Caught by investigating unsigned overflow reported by -fsanitize=integer. llvm-svn: 171421
-
Sean Silva authored
Even though we do have a `.. warning::` directive on the page, hopefully having "In-Progress" in the title will help to condition people's expectations a bit for when they run into the extremely bare-bones release notes. Also, when release season comes around again, maybe this will get people's attention and avoid confusion about what is going into the upcoming release, and what is for changes to trunk for the next version. llvm-svn: 171419
-
Sean Silva authored
The way Sphinx treats the "top-level" adornments is weird. It usually uses the first top-level adornment as the page title, even if the top-level adornment is just one "section" out of many (i.e. if the first section is "Introduction", then it will make the page title be "Introduction"). This behavior can be overriden by using an explicit `.. title::` directive to set the title. Since the Sphinx stylesheet that Clang is currently using ('haiku') nicely puts the document title at the top of the page in the header, this weird default behavior was resulting in a redundant "title" in the body content. Getting rid of this redundant level of headings effectively "exposes" one more level of heading from the stylesheet to which now makes the real "sections" more distinct. llvm-svn: 171417
-
Anshuman Dasgupta authored
Patch by Krzysztof Parzyszek! llvm-svn: 171415
-
Dmitri Gribenko authored
this, ensure we don't regress) llvm-svn: 171412
-
Sean Silva authored
llvm-svn: 171410
-
Sean Silva authored
Language extensions are highly relevant to using clang as a compiler, so move LanguageExtensions up into `Using Clang as a Compiler` on the landing page. The other documents from the now-gone `Language Extensions and Specs` section on the landing page nicely fit hierarchically under LanguageExtensions.rst, so put them under LanguageExtensions.rst's toctree instead of on the landing page. Impetus from Jordan Rose. llvm-svn: 171409
-
Sean Silva authored
Spotted by Nikola Smiljanic. llvm-svn: 171407
-
Argyrios Kyrtzidis authored
llvm-svn: 171402
-
Manuel Klimek authored
Fixes: - incorrect handling of multiple consecutive preprocessor directives - crash when trying to right align the escpaed newline for a line that is longer than the column limit - using only ColumnLimit-1 columns when layouting with escaped newlines inside preprocessor directives llvm-svn: 171401
-
Daniel Jasper authored
This fixes llvm.org/PR14786. We will need to split there as a last resort, but that should be done consistently independent of whether the type is a template type or not. Before: template <typename T> aaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaa<T> ::aaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); After: template <typename T> aaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaa<T>::aaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa); llvm-svn: 171400
-
Daniel Jasper authored
This fixes llvm.org/PR14687. Also fixes segfault for lines starting with * or &. Before: a *~b; *a = 1; // <- this segfaulted After: a * ~b; *a = 1; // no segfault :-) llvm-svn: 171396
-
Manuel Klimek authored
This is the first step towards handling preprocessor directives. This patch only fixes the most pressing issue, namely correctly escaping newlines for tokens within a sequence of a preprocessor directive. The next step will be to fix incorrect format decisions on #define directives. llvm-svn: 171393
-
Daniel Jasper authored
This fixes llvm.org/PR14747. Before: Type *A = (Type * ) P; After: Type *A = (Type *) P; llvm-svn: 171390
-