- Aug 19, 2011
-
-
Douglas Gregor authored
llvm-svn: 138079
-
Matt Beaumont-Gay authored
llvm-svn: 138074
-
Fariborz Jahanian authored
specified. // rdar://9971982 llvm-svn: 138062
-
Fariborz Jahanian authored
llvm-svn: 138049
-
Fariborz Jahanian authored
to modernity. Instead of passing down individual context objects from parser to sema, establish decl context in parser and have sema access current context as needed. I still need to take of Doug's comment for minor cleanups. llvm-svn: 138040
-
Benjamin Kramer authored
llvm-svn: 138032
-
Craig Topper authored
llvm-svn: 138031
-
Douglas Gregor authored
has already been loaded before allocating a new Module structure. If the module has already been loaded (uniquing based on file name), then just return the existing module rather than trying to load it again. This allows us to load a DAG of modules. Introduce a simple test case that forms a diamond-shaped module graph, and illustrates that a source file importing the bottom of the diamond can see declarations in all four of the modules that make up the diamond. Note that this version moves the file-opening logic into the module manager, rather than splitting it between the module manager and the AST reader. More importantly, it properly handles the weird-but-possibly-useful case of loading an AST file from "-". llvm-svn: 138030
-
Anna Zaks authored
Fix a memory leak in the analyzer - BugReports didn't get freed. Plus, remove invalid assert from the destructor which wasn't called previously due to the leak. llvm-svn: 138027
-
Chandler Carruth authored
llvm-svn: 138024
-
Chandler Carruth authored
llvm-svn: 138023
-
Eric Christopher authored
when falling back to cc1plus for our compile. rdar://9963920 llvm-svn: 138017
-
Ted Kremenek authored
Enhance -Wstrl-incorrect-size to not report a FIXIT for destinations that are flexible arrays or have size 1. llvm-svn: 138004
-
Anna Zaks authored
One API change: I added BugReporter as an additional parameter to the BugReporterVisitor::VisitNode() method to allow visitors register other visitors with the report on the fly (while processing a node). This functionality is used by NilReceiverVisitor, which registers TrackNullOrUndefValue when the receiver is null. llvm-svn: 138001
-
- Aug 18, 2011
-
-
Kaelyn Uhrain authored
uncorrected identifier. Fixes a problem pointed out by Eli. llvm-svn: 137987
-
Ted Kremenek authored
Reapply r137903, but fix the definition of size_t in the test case to use __SIZE_TYPE__ (and hence be portable). Also, change the warning to -Wstrl-incorrect-size. llvm-svn: 137980
-
Argyrios Kyrtzidis authored
llvm-svn: 137973
-
Chad Rosier authored
Teach ModuleManager::addModule() to check whether a particular module has already been loaded before allocating a new Module structure. If the module has already been loaded (uniquing based on file name), then just return the existing module rather than trying to load it again. This allows us to load a DAG of modules. Introduce a simple test case that forms a diamond-shaped module graph, and illustrates that a source file importing the bottom of the diamond can see declarations in all four of the modules that make up the diamond. llvm-svn: 137971
-
Kaelyn Uhrain authored
diagnosing invalid function redeclarations. llvm-svn: 137966
-
Chad Rosier authored
llvm-svn: 137958
-
Francois Pichet authored
Add support for MSVC __unaligned attribute. Necessary to parse MSVC headers in 64-bit mode (ie: when _M_IA64 or _M_AMD64 is defined) more info: http://msdn.microsoft.com/en-us/library/ms177389.aspx llvm-svn: 137935
-
Chandler Carruth authored
implicitly instantiable, even if we don't see a body on the friend function declaration. The body may simply have not yet been attached. This fixes PR10666. There may be an alternate, preferred implementation strategy, see my FIXME. Review would definitely be appreciated Doug. =D llvm-svn: 137934
-
Douglas Gregor authored
has already been loaded before allocating a new Module structure. If the module has already been loaded (uniquing based on file name), then just return the existing module rather than trying to load it again. This allows us to load a DAG of modules. Introduce a simple test case that forms a diamond-shaped module graph, and illustrates that a source file importing the bottom of the diamond can see declarations in all four of the modules that make up the diamond. llvm-svn: 137925
-
Douglas Gregor authored
-import-module) vs. loaded because some other module depends on them. As part of doing this, pass down the module that caused a module to be loaded directly, rather than assuming that we're loading a chain. Finally, write out all of the directly-loaded modules when serializing an AST file (using the new IMPORTS record), so that an AST file can depend on more than one other AST file, all of which will be loaded when that AST file is loaded. This allows us to form and load a tree of modules, but we can't yet load a DAG of modules. llvm-svn: 137923
-
Ted Kremenek authored
Revert r137903, "Add experimental -Wstrlcpy-size warning that looks to see if the size argument for strlcpy/strlcat is the size of the *source*, and not the size of the *destination*. This warning is off by default (for now)." This currently doesn't work on Windows. llvm-svn: 137920
-
Chad Rosier authored
llvm-svn: 137918
-
Chandler Carruth authored
entirely use the existing -Wunused-value infrastructure. This also fixes a few missed cases for -Wunused in general. llvm-svn: 137916
-
Chad Rosier authored
llvm-svn: 137915
-
Chad Rosier authored
that aren't handled by llvm-gcc on fallback. Enhancement to rdar://9964354 llvm-svn: 137912
-
Ted Kremenek authored
Currently this includes -pedantic warnings as well; we'll need to consider whether these should be included. This works as expected with -Werror. Test cases were added to Sema/warn-unused-parameters.c, but they should probably be broken off into their own test file. llvm-svn: 137910
-
Argyrios Kyrtzidis authored
of expansion (for function macros it includes the right paren). llvm-svn: 137909
-
Eric Christopher authored
This is going to be made a table. llvm-svn: 137907
-
Chad Rosier authored
from stdin. This allows Eli and the like to continue with their debugging trickery without loss of limb (or car) on my part. :) llvm-svn: 137906
-
Bruno Cardoso Lopes authored
llvm-svn: 137905
-
Francois Pichet authored
Downgrade "err_init_list_variable_narrowing" into a warning in Microsoft mode even if c++0x is enabled. This necessary to parse MSVC code in C++0x mode. llvm-svn: 137904
-
Ted Kremenek authored
Add experimental -Wstrlcpy-size warning that looks to see if the size argument for strlcpy/strlcat is the size of the *source*, and not the size of the *destination*. This warning is off by default (for now). Warning logic provided by Geoff Keating. llvm-svn: 137903
-
Anna Zaks authored
llvm-svn: 137899
-
Chad Rosier authored
llvm-svn: 137896
-
Anna Zaks authored
Remove EnhancedBugReport and RangedBugReport - pull all the extra functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME. llvm-svn: 137894
-
Eric Christopher authored
llvm-svn: 137893
-