| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
| |
to avoid extraneous \n's.
llvm-svn: 135862
|
| |
|
|
| |
llvm-svn: 135860
|
| |
|
|
| |
llvm-svn: 135859
|
| |
|
|
| |
llvm-svn: 135858
|
| |
|
|
|
|
|
|
|
|
| |
considering explicit conversion operators when determining surrogate
functions. Fixes PR10453. Note that there are a few test cases where
Clang is still wrong because it does not implement DR899; see PR10456.
Patch by Jonathan Sauer!
llvm-svn: 135857
|
| |
|
|
|
|
| |
Mulder!
llvm-svn: 135855
|
| |
|
|
|
|
| |
will not find raw_ostream.
llvm-svn: 135853
|
| |
|
|
|
|
|
|
| |
LLVM.h imports
them into the clang namespace.
llvm-svn: 135852
|
| |
|
|
|
|
| |
patch by Jon Mulder!
llvm-svn: 135851
|
| |
|
|
| |
llvm-svn: 135840
|
| |
|
|
|
|
| |
they belong.
llvm-svn: 135834
|
| |
|
|
| |
llvm-svn: 135830
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
problem where Clang was setting the
hasExternalVisibleDecls() bit for all
DeclContexts it imported. This caused Clang
to make unnecessary calls to
findExternalVisibleDecls() when an external
AST source was installed.
In fact, Clang sometimes interpreted a failure
by one of these spurious calls to find a
Decl as meaning the Decl didn't exist, even
though findExternalLexicalDecls() did locate
that decl. This produced amusing errors of
the form:
-
error: no member named 'b' in 'A'; did you
mean 'b'?
-
Now, if hasExternalVisibleDecls() or
hasExternalLexicalDecls() should be set, the
external AST source must do so itself.
llvm-svn: 135824
|
| |
|
|
| |
llvm-svn: 135822
|
| |
|
|
| |
llvm-svn: 135813
|
| |
|
|
|
|
|
|
| |
IsIntegralPromotion should consider the signedness of FromType when
calculating promotions. This, as of now, cannot be exercised on any
platform so there is no corresponding test.
llvm-svn: 135803
|
| |
|
|
| |
llvm-svn: 135775
|
| |
|
|
|
|
| |
and writer to StringRef or std::string, as appropriate.
llvm-svn: 135769
|
| |
|
|
|
|
|
| |
of ASTReader so it can become its own full-fledged class
(eventually). No functionality change.
llvm-svn: 135767
|
| |
|
|
|
|
| |
include.
llvm-svn: 135766
|
| |
|
|
|
|
|
|
|
| |
header. This showed up in client code that has a different include
ordering after Chris's shuffle of raw_ostream. All of the Clang code
ends up with a header included before this one that provides the needed
type and using declaration.
llvm-svn: 135765
|
| |
|
|
|
|
|
|
|
| |
Introduce and document a new objc_returns_inner_pointer
attribute, and consume it by performing a retain+autorelease
on message receivers when they're not immediately loaded from
an object with precise lifetime.
llvm-svn: 135764
|
| |
|
|
|
|
| |
clang_cc1.
llvm-svn: 135763
|
| |
|
|
|
|
| |
ArrayRef.
llvm-svn: 135761
|
| |
|
|
| |
llvm-svn: 135753
|
| |
|
|
|
|
| |
Many thanks to Eli for reducing this great testcase.
llvm-svn: 135752
|
| |
|
|
| |
llvm-svn: 135751
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so that we have one, simple way to map from global bit offsets to
local bit offsets. Eliminates a number of loops over the chain, and
generalizes for more interesting bit remappings.
Also, as an amusing oddity, we were computing global bit offsets
*backwards* for preprocessed entities (e.g., the directly included PCH
file in the chain would start at offset zero, rather than the original
PCH that occurs first in translation unit). Even more amusingly, it
made precompiled preambles work, because we were forgetting to adjust
the local bit offset to a global bit offset when storing preprocessed
entity offsets in the ASTUnit. Two wrongs made a right, and now
they're both right.
llvm-svn: 135750
|
| |
|
|
|
|
|
| |
passing a temporary const char* down as the "isysroot" parameter and
then accessing it later. Fixes <rdar://problem/9035180>.
llvm-svn: 135749
|
| |
|
|
|
|
|
|
|
|
|
|
| |
AnalysisBasedWarnings Sema layer and out of the Analysis library itself.
This returns the uninitialized values analysis to a more pure form,
allowing its original logic to correctly detect some categories of
definitely uninitialized values. Fixes PR10358 (again).
Thanks to Ted for reviewing and updating this patch after his rewrite of
several portions of this analysis.
llvm-svn: 135748
|
| |
|
|
|
|
|
| |
their loaded values, although it still worth doing this for __weak
properties to get the autoreleased-return-value optimization.
llvm-svn: 135747
|
| |
|
|
|
|
| |
where it belongs.
llvm-svn: 135746
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
methods, including indirectly overridden methods like those
declared in protocols and categories. There are mismatches
that we would like to diagnose but aren't yet, but this
is fine for now.
I looked at approaches that avoided doing this lookup
unless we needed it, but the infer-related-result-type
checks were doing it anyway, so I left it with the same
fast-path check for no previous declartions of that
selector.
llvm-svn: 135743
|
| |
|
|
|
|
|
|
|
| |
This was previously not-const only because it has to lazily construct a chain
of ivars the first time it is called (and after the chain is invalidated).
In practice, all the clients were just const_casting their const Decls;
all those now-unnecessary const_casts have been removed.
llvm-svn: 135741
|
| |
|
|
|
|
|
|
|
|
| |
C function) implementation
will be rejected with a compilation error in ARC mode, and a compiler warning otherwise.
This may cause breakage in non-arc (and arc) tests which don't expect warning/error. Feel free
to fix the tests, or reverse the patch, if I am unavailable. // rdar://9818354 - WIP
llvm-svn: 135740
|
| |
|
|
|
|
|
|
| |
type IDs into a single place, and make sure that all of the callers
use the appropriate functions to do the mapping. Since the mapping is
still the identity function, this is essentially a no-op.
llvm-svn: 135733
|
| |
|
|
|
|
|
| |
when using ccache and libtool.m4 assumes that the compiler cannot print
warnings about options it knows about.
llvm-svn: 135723
|
| |
|
|
|
|
| |
within the ASTReader (I hope).
llvm-svn: 135720
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
such that every declaration ID loaded from an AST file will go through
a central local -> global mapping function. At present, this change
does nothing, since the local -> global mapping function is the
identity function.
This is the mechanical part of the refactoring; a follow-up patch will
address a few remaining areas where it's not obvious whether we're
dealing with local or global IDs.
llvm-svn: 135711
|
| |
|
|
| |
llvm-svn: 135708
|
| |
|
|
|
|
| |
of -fobjc-arc. rdar://9818341
llvm-svn: 135707
|
| |
|
|
|
|
| |
and generalizes how CXX base specifiers are identified and loaded by using a ContinuousRangeMap. This also adds a global bit offset (or base) to the PerFileData.
llvm-svn: 135705
|
| |
|
|
|
|
| |
remappings we generate
llvm-svn: 135701
|
| |
|
|
|
|
|
| |
entries incrementally, rather than iterating over the chain when
loading a single AST file.
llvm-svn: 135692
|
| |
|
|
|
|
|
|
| |
actual filename.
Should avoid race conditions. Addresses rdar://9788943.
llvm-svn: 135691
|
| |
|
|
|
|
| |
instead of createTemporaryFileOnDisk.
llvm-svn: 135690
|
| |
|
|
|
|
| |
initializers since r132890.
llvm-svn: 135689
|
| |
|
|
|
|
| |
projects. C++98/03 is sooooo yesterday
llvm-svn: 135687
|
| |
|
|
| |
llvm-svn: 135686
|
| |
|
|
|
|
| |
// rdar://9615045
llvm-svn: 135685
|