]> granicus.if.org Git - clang/log
clang
12 years agoMake AnalyzerOptions a shared object between CompilerInvocation and
Ted Kremenek [Fri, 31 Aug 2012 04:36:05 +0000 (04:36 +0000)]
Make AnalyzerOptions a shared object between CompilerInvocation and
AnalysisManager, allowing the StringMap of configuration values to
be propagated.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162978 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMove AnalyzerOptions.h into 'Core' StaticAnalyzer sub-library.
Ted Kremenek [Fri, 31 Aug 2012 04:35:58 +0000 (04:35 +0000)]
Move AnalyzerOptions.h into 'Core' StaticAnalyzer sub-library.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162977 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDeclPrinter tests: simplify the code by using the new runToolOnCodeWithArgs
Dmitri Gribenko [Fri, 31 Aug 2012 03:23:26 +0000 (03:23 +0000)]
DeclPrinter tests: simplify the code by using the new runToolOnCodeWithArgs
function from Tooling.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162976 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDocumentation: correct a typo introduced in r162971.
Dmitri Gribenko [Fri, 31 Aug 2012 03:19:55 +0000 (03:19 +0000)]
Documentation: correct a typo introduced in r162971.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162975 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDeclPrinter tests: since now some platforms use C++11 by default, make it
Dmitri Gribenko [Fri, 31 Aug 2012 03:05:44 +0000 (03:05 +0000)]
DeclPrinter tests: since now some platforms use C++11 by default, make it
explicitly visible in test cases which language variant is used.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162974 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDocumentation: add missing word "accepts".
Dmitri Gribenko [Fri, 31 Aug 2012 02:39:31 +0000 (02:39 +0000)]
Documentation: add missing word "accepts".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162971 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMake a bunch of methods on Lexer private.
Eli Friedman [Fri, 31 Aug 2012 02:29:37 +0000 (02:29 +0000)]
Make a bunch of methods on Lexer private.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162970 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoComment HTML tag name machers: move from StringSwitch to an efficient
Dmitri Gribenko [Fri, 31 Aug 2012 02:21:44 +0000 (02:21 +0000)]
Comment HTML tag name machers: move from StringSwitch to an efficient
TableGen-generated string matcher.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162969 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRevert "[analyzer] Disable diagnostic checking on the buildbot."
Jordan Rose [Fri, 31 Aug 2012 00:36:30 +0000 (00:36 +0000)]
Revert "[analyzer] Disable diagnostic checking on the buildbot."

This reverts commit befc0f648c83f65e1f3567f2058c7c18b4bc3ad8 now that
plist-html diagnostics are working again.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162966 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Ensure that PathDiagnostics profile the same regardless of path.
Jordan Rose [Fri, 31 Aug 2012 00:36:26 +0000 (00:36 +0000)]
[analyzer] Ensure that PathDiagnostics profile the same regardless of path.

PathDiagnostics are actually profiled and uniqued independently of the
path on which the bug occurred. This is used to merge diagnostics that
refer to the same issue along different paths, as well as by the plist
diagnostics to reference files created by the HTML diagnostics.

However, there are two problems with the current implementation:

1) The bug description is included in the profile, but some
   PathDiagnosticConsumers prefer abbreviated descriptions and some
   prefer verbose descriptions. Fixed by including both descriptions in
   the PathDiagnostic objects and always using the verbose one in the profile.

2) The "minimal" path generation scheme provides extra information about
   which events came from macros that the "extensive" scheme does not.
   This resulted not only in different locations for the plist and HTML
   diagnostics, but also in diagnostics being uniqued in the plist output
   but not in the HTML output. Fixed by storing the "end path" location
   explicitly in the PathDiagnostic object, rather than trying to find the
   last piece of the path when the diagnostic is requested.

This should hopefully finish unsticking our internal buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162965 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Fix a crash in plist-html generation introduced in r162939.
Jordan Rose [Fri, 31 Aug 2012 00:36:20 +0000 (00:36 +0000)]
[analyzer] Fix a crash in plist-html generation introduced in r162939.

Basically, do the correct thing to fix the XML generation error, rather
than making it even worse by unilaterally dereferencing a null pointer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162964 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoChange the representation of builtin functions in the AST
Eli Friedman [Fri, 31 Aug 2012 00:14:07 +0000 (00:14 +0000)]
Change the representation of builtin functions in the AST
(__builtin_* etc.) so that it isn't possible to take their address.
Specifically, introduce a new type to represent a reference to a builtin
function, and a new cast kind to convert it to a function pointer in the
operand of a call.  Fixes PR13195.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162962 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoobjective-C ARC: under -Wexplicit-ownership-type diagnose those
Fariborz Jahanian [Thu, 30 Aug 2012 23:56:02 +0000 (23:56 +0000)]
objective-C ARC: under -Wexplicit-ownership-type diagnose those
method parameter types which are reference to an objective-C
pointer to object with no explicit ownership. // rdar://10907090

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162959 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Refactor the logic that determines if a functions should be
Anna Zaks [Thu, 30 Aug 2012 23:42:02 +0000 (23:42 +0000)]
[analyzer] Refactor the logic that determines if a functions should be
reanalyzed.

The policy on what to reanalyze should be in AnalysisConsumer with the
rest of visitation order logic.

There is no reason why ExprEngine needs to pass the Visited set to
CoreEngine, it can populate it itself.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162957 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Remove cast inside dyn_cast.
Anna Zaks [Thu, 30 Aug 2012 22:55:32 +0000 (22:55 +0000)]
[analyzer] Remove cast inside dyn_cast.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162951 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Make analyzer-ipa=dynamic-bifurcate the default.
Anna Zaks [Thu, 30 Aug 2012 22:42:59 +0000 (22:42 +0000)]
[analyzer] Make analyzer-ipa=dynamic-bifurcate the default.

There are two tests regressions that come from the fact that the Retain
Count checker does not cancel out inlining of ObjC methods.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162950 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Fixup for r162935 as per Jordan's review.
Anna Zaks [Thu, 30 Aug 2012 22:42:41 +0000 (22:42 +0000)]
[analyzer] Fixup for r162935 as per Jordan's review.

Thanks for catching this!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162949 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoSwitch a couple getAs uses to castAs.
Eli Friedman [Thu, 30 Aug 2012 22:22:09 +0000 (22:22 +0000)]
Switch a couple getAs uses to castAs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162948 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoThe presence of a user-*declared* constructor makes the default
Douglas Gregor [Thu, 30 Aug 2012 21:47:37 +0000 (21:47 +0000)]
The presence of a user-*declared* constructor makes the default
constructor not user provided (and, therefore, non-trivial). Fixes
<rdar://problem/11736429>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162947 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Disable diagnostic checking on the buildbot.
Anna Zaks [Thu, 30 Aug 2012 21:04:09 +0000 (21:04 +0000)]
[analyzer] Disable diagnostic checking on the buildbot.

Due to recent diagnostic changes, we may generate malformed diagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162940 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Plist diagnostics: Fix a case where we fail to close an XML tag.
Jordan Rose [Thu, 30 Aug 2012 20:43:09 +0000 (20:43 +0000)]
[analyzer] Plist diagnostics: Fix a case where we fail to close an XML tag.

If the current path diagnostic does /not/ have files associated with it, we
were simply skipping on to the next diagnostic with 'continue'. But that
also skipped the close tag for the diagnostic's <dict> node.

Part of fixing our internal analyzer buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162939 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd -Wduplicate-enum warning. Clang will emit this warning when an implicitly
Richard Trieu [Thu, 30 Aug 2012 20:32:24 +0000 (20:32 +0000)]
Add -Wduplicate-enum warning.  Clang will emit this warning when an implicitly
initiated enum constant has the same value as another enum constant.

For instance:
enum test { A, B, C = -1, D, E = 1 };
Clang will warn that:
 A and D both have value 0
 B and E both have value 1

A few exceptions are made to keep the noise down.  Enum constants which are
initialized to another enum constant, or an enum constant plus or minus 1 will
not trigger this warning.  Also, anonymous enums are not checked.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162938 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoExtend the "__is_pod" hack, which demotes various type trait keywords
Douglas Gregor [Thu, 30 Aug 2012 20:04:43 +0000 (20:04 +0000)]
Extend the "__is_pod" hack, which demotes various type trait keywords
(__is_pod, __is_signed, etc.) to normal identifiers if they are
encountered in certain places in the grammar where we know that prior
versions of libstdc++ or libc++ use them, to still allow the use of
these keywords as type traits. Fixes <rdar://problem/9836262> and PR10184.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162937 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFixes a bug for binding memoized match results.
Manuel Klimek [Thu, 30 Aug 2012 19:41:06 +0000 (19:41 +0000)]
Fixes a bug for binding memoized match results.

Intorduces an abstraction for DynTypedNode which makes
is impossible to create in ways that introduced the bug;
also hides the implementation details of the template
magic away from the user and prepares the code for adding
QualType and TypeLoc bindings, as well as using DynTypedNode
instead of overloads for child and ancestor matching.

getNodeAs<T> was changed towards a non-pointer type, as
we'll want QualType and TypeLoc nodes to be returned
by value (the alternative would be to create new storage
which is prohibitively costly if we want to use it for
child / ancestor matching).

DynTypedNode is moved into a new header ASTTypeTraits.h,
as it is completely independent of the rest of the matcher
infrastructure - if the need comes up, we can move it to
a more common place.

The interface for users before the introduction of the
common storage change remains the same, minus the introduced
bug, for which a regression test was added.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162936 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Do not propagate the [super init] could be nil assumption
Anna Zaks [Thu, 30 Aug 2012 19:40:52 +0000 (19:40 +0000)]
[analyzer] Do not propagate the [super init] could be nil assumption
from callee to caller.

radar://12109638

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162935 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoTeach RetainCountChecker about 'pragma clang arc_cf_code_audited'.
Ted Kremenek [Thu, 30 Aug 2012 19:27:02 +0000 (19:27 +0000)]
Teach RetainCountChecker about 'pragma clang arc_cf_code_audited'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162934 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix missing 'clang' in pragma example in ARC doc.
Ted Kremenek [Thu, 30 Aug 2012 19:26:58 +0000 (19:26 +0000)]
Fix missing 'clang' in pragma example in ARC doc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162933 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRename 'MaxLoop' to 'maxBlockVisitOnPath' to reflect reality. We
Ted Kremenek [Thu, 30 Aug 2012 19:26:56 +0000 (19:26 +0000)]
Rename 'MaxLoop' to 'maxBlockVisitOnPath' to reflect reality.  We
should consider renaming the command line option as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162932 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRename 'VisualizeEGUbi' and 'VisualizeEGDot' to 'visualizeExplodedGraphWithUbigGraph'
Ted Kremenek [Thu, 30 Aug 2012 19:26:53 +0000 (19:26 +0000)]
Rename 'VisualizeEGUbi' and 'VisualizeEGDot' to 'visualizeExplodedGraphWithUbigGraph'
and 'visualizeExplodedGraphWithGraphViz' respectively.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162931 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRename AnalyzerOptions 'EagerlyAssume' to 'eagerlyAssumeBinOpBifurcation'.
Ted Kremenek [Thu, 30 Aug 2012 19:26:48 +0000 (19:26 +0000)]
Rename AnalyzerOptions 'EagerlyAssume' to 'eagerlyAssumeBinOpBifurcation'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162930 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoStore const& to AnalyzerOptions in AnalysisManager instead of copying
Ted Kremenek [Thu, 30 Aug 2012 19:26:43 +0000 (19:26 +0000)]
Store const& to AnalyzerOptions in AnalysisManager instead of copying
individual flags.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162929 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMove AnalyzerOptions.h to include/clang/StaticAnalyzer.
Ted Kremenek [Thu, 30 Aug 2012 19:26:38 +0000 (19:26 +0000)]
Move AnalyzerOptions.h to include/clang/StaticAnalyzer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162928 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMove Analyses.def to include/clang/StaticAnalyzer.
Ted Kremenek [Thu, 30 Aug 2012 19:26:33 +0000 (19:26 +0000)]
Move Analyses.def to include/clang/StaticAnalyzer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162927 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoobjective-C: clang must implicitly convert
Fariborz Jahanian [Thu, 30 Aug 2012 18:49:41 +0000 (18:49 +0000)]
objective-C: clang must implicitly convert
__objc_yes/__objc_no to (BOOL)1/(BOOL)0 when
BOOL is declared; otherwise it resorts to
default of 'signed char'. This is important to
selecting the correct Numeric API numberWithBool:
Can't have a clang test for this. Will checkin and
executable llvm test. // rdar://12156616

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162922 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMake preprocessor act in a GCC-compatible fashion when a macro is redefined
Richard Smith [Thu, 30 Aug 2012 13:38:46 +0000 (13:38 +0000)]
Make preprocessor act in a GCC-compatible fashion when a macro is redefined
within its own argument list. The original definition is used for the immediate
expansion, but the new definition is used for any subsequent occurences within
the argument list or after the expansion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162906 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoPR13652: Don't assume the parameter array on a FunctionTypeLoc for a lambda will
Richard Smith [Thu, 30 Aug 2012 13:13:20 +0000 (13:13 +0000)]
PR13652: Don't assume the parameter array on a FunctionTypeLoc for a lambda will
be filled in; they won't if the lambda's declarator has an invalid type. Instead
take the parameters from the declarator directly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162904 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoWWW: Force word wrapping of the content to avoid horizontal scrolling.
Benjamin Kramer [Thu, 30 Aug 2012 13:12:02 +0000 (13:12 +0000)]
WWW: Force word wrapping of the content to avoid horizontal scrolling.

This isn't perfect but avoids overlap of the menu and the content.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162903 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoChange -analyzer-config to use '=' as the key-value separator, and only
Ted Kremenek [Thu, 30 Aug 2012 05:49:16 +0000 (05:49 +0000)]
Change -analyzer-config to use '=' as the key-value separator, and only
support the '-analyzer-config key=val' variant.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162891 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoReland r160052: Default to -std=c++11 on Windows.
Nico Weber [Thu, 30 Aug 2012 02:08:31 +0000 (02:08 +0000)]
Reland r160052: Default to -std=c++11 on Windows.

Also update the tests that rely on c++98 to explicitly mention that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162890 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoTooling: Add a runToolOnCodeWithArgs() function that allows
Nico Weber [Thu, 30 Aug 2012 02:02:19 +0000 (02:02 +0000)]
Tooling: Add a runToolOnCodeWithArgs() function that allows
passing additional parameters to a tool.

Use this to fix a FIXME in testing code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162889 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix C++ comment in C source
Michael Liao [Thu, 30 Aug 2012 00:45:32 +0000 (00:45 +0000)]
Fix C++ comment in C source

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162887 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix a crash in type merging with enum types.
Eli Friedman [Thu, 30 Aug 2012 00:44:15 +0000 (00:44 +0000)]
Fix a crash in type merging with enum types.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162886 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoEmit .gcda files as absolute paths instead of relative paths.
Bill Wendling [Thu, 30 Aug 2012 00:43:41 +0000 (00:43 +0000)]
Emit .gcda files as absolute paths instead of relative paths.

This improves compatibility with gcc in this regard, and this file generation
can be ameliorated with GCOV_PREFIX and GCOV_PREFIX_STRIP. It's also useful if
your build directory doesn't specify -o <abspath> and it uses a recursive make
structure, so it's not relative to the toplevel.

Patch by Joshua Cranmer!
<rdar://problem/12179524>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162884 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMake this test portable.
Ted Kremenek [Thu, 30 Aug 2012 00:27:25 +0000 (00:27 +0000)]
Make this test portable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162880 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Stop tracking symbols based on a retain count summary of
Anna Zaks [Wed, 29 Aug 2012 23:23:43 +0000 (23:23 +0000)]
[analyzer] Stop tracking symbols based on a retain count summary of
inlined function.

This resolves retain count checker false positives that are caused by
inlining ObjC and other methods. Essentially, if we are passing an
object to a method with "delegate" in the selector or a function pointer
as another argument, we should stop tracking the other parameters/return
value as far as the retain count checker is concerned.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162876 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Fixup 162863.
Anna Zaks [Wed, 29 Aug 2012 23:23:39 +0000 (23:23 +0000)]
[analyzer] Fixup 162863.

Thanks Jordan.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162875 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix serious regression introduced in r157780 where __attribute__((NSObject))
Ted Kremenek [Wed, 29 Aug 2012 22:54:47 +0000 (22:54 +0000)]
Fix serious regression introduced in r157780 where __attribute__((NSObject))
could not be attached to a CFTypeRef.

Fixes <rdar://problem/12197822>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162872 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix PR reference in test.
Eli Friedman [Wed, 29 Aug 2012 21:27:50 +0000 (21:27 +0000)]
Fix PR reference in test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162866 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix run-line for test.
Eli Friedman [Wed, 29 Aug 2012 21:25:58 +0000 (21:25 +0000)]
Fix run-line for test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162865 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer]Fix typo, unbreak static analyzer BuildBot (at least
Anna Zaks [Wed, 29 Aug 2012 21:22:40 +0000 (21:22 +0000)]
[analyzer]Fix typo, unbreak static analyzer BuildBot (at least
partially).

(Addresses a regression from r162790.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162864 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Improved diagnostic pruning for calls initializing values.
Anna Zaks [Wed, 29 Aug 2012 21:22:37 +0000 (21:22 +0000)]
[analyzer] Improved diagnostic pruning for calls initializing values.

This heuristic addresses the case when a pointer (or ref) is passed
to a function, which initializes the variable (or sets it to something
other than '0'). On the branch where the inlined function does not
set the value, we report use of undefined value (or NULL pointer
dereference). The access happens in the caller and the path
through the callee would get pruned away with regular path pruning. To
solve this issue, we previously disabled diagnostic pruning completely
on undefined and null pointer dereference checks, which entailed very
verbose diagnostics in most cases. Furthermore, not all of the
undef value checks had the diagnostic pruning disabled.

This patch implements the following heuristic: if we pass a pointer (or
ref) to the region (on which the error is reported) into a function and
it's value is either undef or 'NULL' (and is a pointer), do not prune
the function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162863 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMake alignment computation for pointer values for builtins handle
Eli Friedman [Wed, 29 Aug 2012 21:21:11 +0000 (21:21 +0000)]
Make alignment computation for pointer values for builtins handle
non-pointer types with a pointer representation correctly. PR13660.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162862 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDefine __mips64 / __mips64__ macros for MIPS 64-bit targets.
Simon Atanasyan [Wed, 29 Aug 2012 20:50:11 +0000 (20:50 +0000)]
Define __mips64 / __mips64__ macros for MIPS 64-bit targets.
The patch suggested by Brad Smith.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162858 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoUse getTargetDefines() virtual function in MipsTargetInfoBase successors
Simon Atanasyan [Wed, 29 Aug 2012 19:59:32 +0000 (19:59 +0000)]
Use getTargetDefines() virtual function in MipsTargetInfoBase successors
to define all macros for MIPS targets. Remove redundant virtual function
getArchDefines(). Two virtual functions for this task are really too much.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162853 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFactor out MIPS macro definitions common for all MIPS targets.
Simon Atanasyan [Wed, 29 Aug 2012 19:14:58 +0000 (19:14 +0000)]
Factor out MIPS macro definitions common for all MIPS targets.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162852 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMove TLS check from LValueExprEvaluator::VisitVarDecl to
Hans Wennborg [Wed, 29 Aug 2012 18:27:29 +0000 (18:27 +0000)]
Move TLS check from LValueExprEvaluator::VisitVarDecl to
CheckLValueConstantExpression.

Richard pointed out that using the address of a TLS variable is ok in a
core C++11 constant expression, as long as it isn't part of the eventual
result of constant expression evaluation. Having the check in
CheckLValueConstantExpression accomplishes this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162850 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoobjective-C: make -Widiomatic-parentheses work
Fariborz Jahanian [Wed, 29 Aug 2012 17:17:11 +0000 (17:17 +0000)]
objective-C: make -Widiomatic-parentheses work
when assignment expression in conditional invloves
property reference. // rdar://11066598

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162846 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFixed a problem with #pragma push_macro/pop_macro implementation.
Alexander Kornienko [Wed, 29 Aug 2012 16:56:24 +0000 (16:56 +0000)]
Fixed a problem with #pragma push_macro/pop_macro implementation.

Summary:
The problem was with the following sequence:
  #pragma push_macro("long")
  #undef long
  #pragma pop_macro("long")
in case when "long" didn't represent a macro.
Fixed crash and removed code duplication for #undef/pop_macro case. Added regression tests.

Reviewers: doug.gregor, klimek

Reviewed By: doug.gregor

CC: cfe-commits, chapuni
Differential Revision: http://llvm-reviews.chandlerc.com/D31

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162845 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoDefine _MIPS_ARCH and _MIPS_ARCH_<cpu name> macros for MIPS targets.
Simon Atanasyan [Wed, 29 Aug 2012 15:17:29 +0000 (15:17 +0000)]
Define _MIPS_ARCH and _MIPS_ARCH_<cpu name> macros for MIPS targets.
The patch suggested by Logan Chien.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162840 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoReversing the logic since C99 mode is actually not an extension. Also, changing...
Aaron Ballman [Wed, 29 Aug 2012 12:35:14 +0000 (12:35 +0000)]
Reversing the logic since C99 mode is actually not an extension.  Also, changing the group to the singular to match the diagnostic better.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162838 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix r162835 as per Richard's comments.
Hans Wennborg [Wed, 29 Aug 2012 09:17:34 +0000 (09:17 +0000)]
Fix r162835 as per Richard's comments.

VisitVarDecl should return Error(E), and we should test that the address
of a TLS var can't be used as a constexpr.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162837 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMove the test for PR13720 from Sema/init.c to Sema/thread-specifier.c.
Hans Wennborg [Wed, 29 Aug 2012 09:04:10 +0000 (09:04 +0000)]
Move the test for PR13720 from Sema/init.c to Sema/thread-specifier.c.

Can't use __thread in init.c because it doesn't have a triple.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162836 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoThe address of a TLS var is not compile-time constant (PR13720)
Hans Wennborg [Wed, 29 Aug 2012 08:44:49 +0000 (08:44 +0000)]
The address of a TLS var is not compile-time constant (PR13720)

This makes Clang produce an error for code such as:

  __thread int x;
  int *p = &x;

The lvalue of a thread-local variable cannot be evaluated at compile
time.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162835 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoClarify the point at which ARC destroys ivars vis-à-vis
John McCall [Wed, 29 Aug 2012 08:32:30 +0000 (08:32 +0000)]
Clarify the point at which ARC destroys ivars vis-à-vis
[super dealloc].  rdar://problem/11141872

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162833 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoUse double instead of single quote to expand .
Ted Kremenek [Wed, 29 Aug 2012 07:22:34 +0000 (07:22 +0000)]
Use double instead of single quote to expand .

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162830 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAdd new -cc1 driver option -analyzer-config, which allows one to specify
Ted Kremenek [Wed, 29 Aug 2012 05:55:00 +0000 (05:55 +0000)]
Add new -cc1 driver option -analyzer-config, which allows one to specify
a comma separated collection of key:value pairs (which are strings).  This
allows a general way to provide analyzer configuration data from the command line.

No clients yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162827 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] C++ objects returned on the stack may be wrapped in ExprWithCleanups.
Jordan Rose [Wed, 29 Aug 2012 01:11:59 +0000 (01:11 +0000)]
[analyzer] C++ objects returned on the stack may be wrapped in ExprWithCleanups.

In C++, objects being returned on the stack are actually copy-constructed into
the return value. That means that when a temporary is returned, it still has
to be destroyed, i.e. the returned expression will be wrapped in an
ExprWithCleanups node. Our "returning stack memory" checker needs to look
through this node to see if we really are returning an object by value.

PR13722

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162817 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoKeep history of macro definitions and #undefs
Alexander Kornienko [Wed, 29 Aug 2012 00:20:03 +0000 (00:20 +0000)]
Keep history of macro definitions and #undefs

Summary:
Summary: Keep history of macro definitions and #undefs with corresponding source locations, so that we can later find out all macros active in a specified source location. We don't save the history in PCH (no need currently). Memory overhead is about sizeof(void*)*3*<number of macro definitions and #undefs>+<in-memory size of all #undef'd macros>

I've run a test on a file composed of 109 .h files from boost 1.49 on x86-64 linux.
Stats before this patch:
*** Preprocessor Stats:
73222 directives found:
  19171 #define.
  4345 #undef.
  #include/#include_next/#import:
    5233 source files entered.
    27 max include stack depth
  19210 #if/#ifndef/#ifdef.
  2384 #else/#elif.
  6891 #endif.
  408 #pragma.
14466 #if/#ifndef#ifdef regions skipped
80023/451669/1270 obj/fn/builtin macros expanded, 85724 on the fast path.
127145 token paste (##) operations performed, 11008 on the fast path.

Preprocessor Memory: 5874615B total
  BumpPtr: 4399104
  Macro Expanded Tokens: 417768
  Predefines Buffer: 8135
  Macros: 1048576
  #pragma push_macro Info: 0
  Poison Reasons: 1024
  Comment Handlers: 8

Stats with this patch:
...
Preprocessor Memory: 7541687B total
  BumpPtr: 6066176
  Macro Expanded Tokens: 417768
  Predefines Buffer: 8135
  Macros: 1048576
  #pragma push_macro Info: 0
  Poison Reasons: 1024
  Comment Handlers: 8

In my test increase in memory usage is about 1.7Mb, which is ~28% of initial preprocessor's memory usage and about 0.8% of clang's total VMM allocation.

As for CPU overhead, it should only be noticeable when iterating over all macros, and should mostly consist of couple extra dereferences and one comparison per macro + skipping of #undef'd macros. It's less trivial to measure, though, as the preprocessor consumes a very small fraction of compilation time.

Reviewers: doug.gregor, klimek, rsmith, djasper

Reviewed By: doug.gregor

CC: cfe-commits, chandlerc
Differential Revision: http://llvm-reviews.chandlerc.com/D28

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162810 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoModifes BoundNodes to store void* and allow casting them
Manuel Klimek [Tue, 28 Aug 2012 23:26:39 +0000 (23:26 +0000)]
Modifes BoundNodes to store void* and allow casting them
into the correct types when pulling them out in the result
callback in a type safe way.

This is also the base change for multiple things that will
allow handling things more generally and thus supporting more
of the AST, especially handling Type nodes.

Patch contributed by Michael Diamond.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162804 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoobjective-C arc: ns_returns_retained is a type attribute in ARC,
Fariborz Jahanian [Tue, 28 Aug 2012 22:26:21 +0000 (22:26 +0000)]
objective-C arc: ns_returns_retained is a type attribute in ARC,
and when used in property type declaration, is handled as type
attribute. Do not issue the warning when declaraing the property.
// rdar://12173491

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162801 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix test case for Release builds.
Chad Rosier [Tue, 28 Aug 2012 22:22:54 +0000 (22:22 +0000)]
Fix test case for Release builds.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162800 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoOnly add common tool options when CommonOptionsParser is used.
Alexander Kornienko [Tue, 28 Aug 2012 22:15:41 +0000 (22:15 +0000)]
Only add common tool options when CommonOptionsParser is used.

Summary: Subj.

Reviewers: chandlerc, klimek, djasper

Reviewed By: klimek

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D29

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162798 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoRevert r162424 now that the scoping issue has been fixed in r162444.
Chad Rosier [Tue, 28 Aug 2012 22:08:58 +0000 (22:08 +0000)]
Revert r162424 now that the scoping issue has been fixed in r162444.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162797 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[ms-inline asm] Have MSAsmStmts use the generic EmitAsmStmt codegen function.
Chad Rosier [Tue, 28 Aug 2012 21:11:24 +0000 (21:11 +0000)]
[ms-inline asm] Have MSAsmStmts use the generic EmitAsmStmt codegen function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162796 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoSplitting the duplicated decl spec extension warning into two: one is an ExtWarn...
Aaron Ballman [Tue, 28 Aug 2012 20:55:40 +0000 (20:55 +0000)]
Splitting the duplicated decl spec extension warning into two: one is an ExtWarn and the other a vanilla warning.  This addresses PR13705, where const char const * wouldn't warn unless -pedantic was specified under the right conditions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162793 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Teach CallEventManager that CXXTemporaryObjectExpr is also a ctor.
Jordan Rose [Tue, 28 Aug 2012 20:52:21 +0000 (20:52 +0000)]
[analyzer] Teach CallEventManager that CXXTemporaryObjectExpr is also a ctor.

Specifically, CallEventManager::getCaller was looking at the call site for
an inlined call and trying to see what kind of call it was, but it only
checked for CXXConstructExprClass. (It's not using an isa<> here to avoid
doing three more checks on the the statement class.)

This caused an unreachable when we actually did inline the constructor of a
temporary object.

PR13717

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162792 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] When we look for the last stmt in a function, skip implicit dtors.
Jordan Rose [Tue, 28 Aug 2012 20:52:13 +0000 (20:52 +0000)]
[analyzer] When we look for the last stmt in a function, skip implicit dtors.

When exiting a function, the analyzer looks for the last statement in the
function to see if it's a return statement (and thus bind the return value).
However, the search for "the last statement" was accepting statements that
were in implicitly-generated inlined functions (i.e. destructors). So we'd
go and get the statement from the destructor, and then say "oh look, this
function had no explicit return...guess there's no return value". And /that/
led to the value being returned being declared dead, and all our leak
checkers complaining.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162791 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoAutomatically use more cores when the test build uses 'make'.
Ted Kremenek [Tue, 28 Aug 2012 20:40:04 +0000 (20:40 +0000)]
Automatically use more cores when the test build uses 'make'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162790 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoConsolidate helper methods and configuration logic. No functionality change.
Ted Kremenek [Tue, 28 Aug 2012 20:40:02 +0000 (20:40 +0000)]
Consolidate helper methods and configuration logic.  No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162789 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoCUDA: give static storage class to __shared__ and __constant__
Peter Collingbourne [Tue, 28 Aug 2012 20:37:50 +0000 (20:37 +0000)]
CUDA: give static storage class to __shared__ and __constant__
variables without a storage class within a function, to implement
CUDA B.2.5: "__shared__ and __constant__ variables have implied static
storage [duration]."

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162788 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoCUDA: give correct address space to globals declared in functions
Peter Collingbourne [Tue, 28 Aug 2012 20:37:10 +0000 (20:37 +0000)]
CUDA: give correct address space to globals declared in functions

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162787 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoTidy up.
Chad Rosier [Tue, 28 Aug 2012 20:35:06 +0000 (20:35 +0000)]
Tidy up.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162786 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[ms-inline asm] Have generateAsmString() return the AsmString computed by Sema.
Chad Rosier [Tue, 28 Aug 2012 20:33:49 +0000 (20:33 +0000)]
[ms-inline asm] Have generateAsmString() return the AsmString computed by Sema.
We still need to translate the string, but this at least gets us one step
closer to using the more general EmitAsmStmt() codegen function. No functional
change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162785 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[ms-inline asm] Add constraints to MSAsmStmt. We don't currently compute
Chad Rosier [Tue, 28 Aug 2012 20:28:20 +0000 (20:28 +0000)]
[ms-inline asm] Add constraints to MSAsmStmt.  We don't currently compute
the constraints, so in the interim we speculatively assume a 'r' constraint.
This is expected to work for most cases on x86.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162784 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoPass --use-analyzer to scan-build when running within the test harness.
Ted Kremenek [Tue, 28 Aug 2012 20:20:52 +0000 (20:20 +0000)]
Pass --use-analyzer to scan-build when running within the test harness.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162783 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[ms-inline asm] Rename EmitGCCAsmStmt to EmitAsmStmt and have it accept
Chad Rosier [Tue, 28 Aug 2012 18:54:39 +0000 (18:54 +0000)]
[ms-inline asm] Rename EmitGCCAsmStmt to EmitAsmStmt and have it accept
AsmStmts.  This function is only used by GCCAsmStmts, however. Constraints need
to be properly computed before MSAsmStmts can use EmitAsmStmt.  No functional
change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162776 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoexperimental.security.taint is now alpha.security.taint
Ted Kremenek [Tue, 28 Aug 2012 18:45:22 +0000 (18:45 +0000)]
experimental.security.taint is now alpha.security.taint

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162775 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[ms-inline asm] Use dyn_cast<> here to simplify logic.
Chad Rosier [Tue, 28 Aug 2012 18:21:14 +0000 (18:21 +0000)]
[ms-inline asm] Use dyn_cast<> here to simplify logic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162773 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[analyzer] Don't purge dead symbols at the end of calls if -analyzer-purge=none.
Jordan Rose [Tue, 28 Aug 2012 18:16:45 +0000 (18:16 +0000)]
[analyzer] Don't purge dead symbols at the end of calls if -analyzer-purge=none.

No test case since this is a debug option that we will never turn on by
default since it makes the leak checkers much less useful. (We'll only report
leaks at the end of analysis if -analyzer-purge=none.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162772 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMake test pass in Release builds, which use a different naming scheme for llvm values.
Benjamin Kramer [Tue, 28 Aug 2012 18:11:31 +0000 (18:11 +0000)]
Make test pass in Release builds, which use a different naming scheme for llvm values.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162771 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerge test case for PR13704 into exprs.c to reduce test cases
Michael Liao [Tue, 28 Aug 2012 17:46:11 +0000 (17:46 +0000)]
Merge test case for PR13704 into exprs.c to reduce test cases

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162769 91177308-0d34-0410-b5e6-96231b3b80d8

12 years ago[ms-inline asm] Make the AsmStmt class non-virtual.
Chad Rosier [Tue, 28 Aug 2012 17:43:23 +0000 (17:43 +0000)]
[ms-inline asm] Make the AsmStmt class non-virtual.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162768 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix PR13704
Michael Liao [Tue, 28 Aug 2012 16:55:13 +0000 (16:55 +0000)]
Fix PR13704

- The increment needs to be signed value to preserve the original value when
  its data type is larger than 64-bit integer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162766 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix passing of -analyzer-max-loop from scan-build to clang.
Ted Kremenek [Tue, 28 Aug 2012 16:48:48 +0000 (16:48 +0000)]
Fix passing of -analyzer-max-loop from scan-build to clang.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162765 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoWarn about suspicious implicit conversions from floating point to bool
Hans Wennborg [Tue, 28 Aug 2012 15:44:30 +0000 (15:44 +0000)]
Warn about suspicious implicit conversions from floating point to bool

This warns in two specific situations:

1) For potentially swapped function arguments, e.g.

     void foo(bool, float);
     foo(1.7, false);

2) Misplaced brackets around function call arguments, e.g.

     bool InRange = fabs(a - b < delta);

   Where the last argument in a function call is implicitly converted
   from bool to float, and the function returns a float which gets
   implicitly converted to bool.

Patch by Andreas Eckleder!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162763 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoCleanup FreeBSD linking and add support for -pie.
Roman Divacky [Tue, 28 Aug 2012 15:09:03 +0000 (15:09 +0000)]
Cleanup FreeBSD linking and add support for -pie.

Path by Brooks Davis, tests and fixes from me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162761 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoCheck for MIPS target availability for Driver/mips-as.c test.
Simon Atanasyan [Tue, 28 Aug 2012 11:17:20 +0000 (11:17 +0000)]
Check for MIPS target availability for Driver/mips-as.c test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162744 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix for assertion when solving unresolved templates.
Rafael Espindola [Tue, 28 Aug 2012 04:13:54 +0000 (04:13 +0000)]
Fix for assertion when solving unresolved templates.
Patch by Magee, Josh.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162737 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoFix a -Wdocumentation warning.
Dmitri Gribenko [Tue, 28 Aug 2012 02:49:14 +0000 (02:49 +0000)]
Fix a -Wdocumentation warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162730 91177308-0d34-0410-b5e6-96231b3b80d8

12 years agoMerging consecutive comments: be more conservative.
Dmitri Gribenko [Tue, 28 Aug 2012 01:20:53 +0000 (01:20 +0000)]
Merging consecutive comments: be more conservative.
Should fix part 2 of PR13374.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162723 91177308-0d34-0410-b5e6-96231b3b80d8