- Sep 19, 2011
-
-
Peter Collingbourne authored
llvm-svn: 140068
-
Argyrios Kyrtzidis authored
llvm-svn: 140066
-
Argyrios Kyrtzidis authored
PreprocessingRecord's getPreprocessedEntitiesInRange. Also remove all the stuff that were added in ASTUnit that are unnecessary now that we do a binary search for preprocessed entities and deserialize only what is necessary. llvm-svn: 140063
-
Argyrios Kyrtzidis authored
return iterators for local, non-loaded, preprocessed entities. llvm-svn: 140062
-
Argyrios Kyrtzidis authored
instead of getLocation() since we don't care about expanded macro arguments. llvm-svn: 140061
-
Argyrios Kyrtzidis authored
check whether the requested location points inside the precompiled preamble, in which case the returned source location will be a "loaded" one. llvm-svn: 140060
-
Argyrios Kyrtzidis authored
source location of line:col of a specific FileID. llvm-svn: 140059
-
Argyrios Kyrtzidis authored
which will do a binary search and return a pair of iterators for preprocessed entities in the given source range. Source ranges of preprocessed entities are stored twice currently in the PCH/Module file but this will be fixed in a subsequent commit. llvm-svn: 140058
-
Argyrios Kyrtzidis authored
It already works (and is useful with) macro locs as well. llvm-svn: 140057
-
Argyrios Kyrtzidis authored
depend on internal knowledge of SourceLocation. llvm-svn: 140056
-
Argyrios Kyrtzidis authored
llvm-svn: 140055
-
Argyrios Kyrtzidis authored
llvm-svn: 140054
-
Argyrios Kyrtzidis authored
inside a macro argument should be regarded as coming before the location of the expanded tokens. llvm-svn: 140053
-
Argyrios Kyrtzidis authored
don't call ReadSLocEntryRecord() directly because the entry may have already been loaded in which case calling ReadSLocEntryRecord() directly would trigger an assertion in SourceManager. llvm-svn: 140052
-
Argyrios Kyrtzidis authored
points at the inclusion/expansion point of the other, regard this as coming before the other. llvm-svn: 140051
-
Bill Wendling authored
This model uses the 'landingpad' instruction, which is pinned to the top of the landing pad. (A landing pad is defined as the destination of the unwind branch of an invoke instruction.) All of the information needed to generate the correct exception handling metadata during code generation is encoded into the landingpad instruction. The new 'resume' instruction takes the place of the llvm.eh.resume intrinsic call. It's lowered in much the same way as the intrinsic is. llvm-svn: 140049
-
Richard Trieu authored
For instance: template <class T> void E() {}; class F {}; void test() { ::E<::F>(); E<::F>(); } Gives the following error messages: error: found '<::' after a template name which forms the digraph '<:' (aka '[') and a ':', did you mean '< ::'? ::E<::F>(); ^~~ < :: error: expected expression E<::F>(); ^ error: expected ']' note: to match this '[' E<::F>(); This patch adds the digraph fix-it check right before the name lookup, moves the shared checking code to a new function, and adds new tests to catch future regressions. llvm-svn: 140039
-
Devang Patel authored
Radar 10139522 - Part 1. llvm-svn: 140038
-
Matt Beaumont-Gay authored
We were failing to set source locations and ranges in isUnusedResultAWarning for CXXOperatorCallExprs, leading to an "expression result unused" warning with absolutely no context if the expression was inside a macro. llvm-svn: 140036
-
Fariborz Jahanian authored
llvm-svn: 140031
-
John McCall authored
instead of internal linkage. llvm-svn: 140030
-
Fariborz Jahanian authored
llvm-svn: 140022
-
Erik Verbruggen authored
llvm-svn: 140017
-
Erik Verbruggen authored
llvm-svn: 140016
-
Richard Smith authored
In constructors, don't generate implicit initializers for members of anonymous structs contained within anonymous unions. llvm-svn: 140015
-
Richard Smith authored
Remove function which is unused as of r139996. Thanks to David Blaikie for bringing this to my attention. llvm-svn: 140013
-
Francois Pichet authored
Do not use builtin includes if -fms-compatibility is specified. Some MSVC header files have the same name as clang's builtins, this creates clash. llvm-svn: 140009
-
- Sep 18, 2011
-
-
Francois Pichet authored
Move the "jump bypasses variable initialization" error -> warning downgrade from -fms-extensions to -fms-compatibility. llvm-svn: 140008
-
Francois Pichet authored
In Microsoft mode(-fms-compatibility), prefer an integral conversion to a floating-to-integral conversion if the integral conversion is between types of the same size. For example: void f(float); void f(int); int main { long a; f(a); } Here, MSVC will call f(int) instead of generating a compile error as clang will do in standard mode. This fixes a few errors when parsing MFC code with clang. llvm-svn: 140007
-
Richard Smith authored
has no effect since any such destructors must be trivial, and in C++11 such destructors must not be called. llvm-svn: 139997
-
Richard Smith authored
mem-initializer is specified for them, unless an in-class initializer is specified. llvm-svn: 139996
-
Richard Smith authored
Fix PR10531. Attach an initializer to anonymous unions, since the default constructor might not be trivial (if there is an in-class initializer for some member) and might be deleted. llvm-svn: 139991
-
Nico Weber authored
Fixes PR10771. llvm-svn: 139990
-
- Sep 17, 2011
-
-
Fariborz Jahanian authored
class of this method. // rdar://10109725 llvm-svn: 139989
-
Fariborz Jahanian authored
is missing. // rdar//10127639 llvm-svn: 139988
-
Francois Pichet authored
Rename LangOptions::Microsoft to LangOptions::MicrosoftExt to make it clear that this flag must be used only for Microsoft extensions and not emulation; to avoid confusion with the new LangOptions::MicrosoftMode flag. Many of the code now under LangOptions::MicrosoftExt will eventually be moved under the LangOptions::MicrosoftMode flag. llvm-svn: 139987
-
Douglas Gregor authored
the AST reader), merge that header file information with whatever header file information we already have. Otherwise, we might forget something we already knew (e.g., that the header was #import'd already). llvm-svn: 139979
-
Francois Pichet authored
As per discussion with Doug Gregor on the IRC channel, introduce a new compiler switch: -fms-compatility. Microsoft specific tweaking will now fall into 2 categories: - fms-extension: Microsoft specific extensions that should never change the meaning of an otherwise well formed code. Currently map to LangOptions::Microsoft. (To be clearer, I am planning to change the name to LangOptions::MicrosoftExt). - fms-compatibility: Really a MSVC emulation mode. Map to LangOptions::MicrosoftMode. Can change the meaning of an otherwise standard conformant program. llvm-svn: 139978
-
Douglas Gregor authored
llvm-svn: 139977
-
Douglas Gregor authored
arbitrary amount of code. This forces us to stage the AST writer more strictly, ensuring that we don't assign a declaration ID to a declaration until after we're certain that no more modules will get loaded. llvm-svn: 139974
-