]> granicus.if.org Git - clang/log
clang
13 years agoMove the HilightRange method from TextDiagnosticPrinter down to
Chandler Carruth [Wed, 7 Sep 2011 07:02:31 +0000 (07:02 +0000)]
Move the HilightRange method from TextDiagnosticPrinter down to
CaretDiagnostic. It's completely generic, with nothing to do with the
diagnostic client or info APIs.

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

13 years agoHoist the tab expansion into a helper function.
Chandler Carruth [Wed, 7 Sep 2011 05:36:50 +0000 (05:36 +0000)]
Hoist the tab expansion into a helper function.

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

13 years agoDon't compute the same line number in two places, once inside a loop.
Chandler Carruth [Wed, 7 Sep 2011 05:01:10 +0000 (05:01 +0000)]
Don't compute the same line number in two places, once inside a loop.

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

13 years agoMake sure the FunctionDecl's created by "#pragma weak" have correct ParmVarDecl's...
Eli Friedman [Wed, 7 Sep 2011 04:05:06 +0000 (04:05 +0000)]
Make sure the FunctionDecl's created by "#pragma weak" have correct ParmVarDecl's. PR10878.

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

13 years ago[arcmt] Remove xfail on test for windows, Takumi reported that it passes mingw and...
Argyrios Kyrtzidis [Wed, 7 Sep 2011 03:43:41 +0000 (03:43 +0000)]
[arcmt] Remove xfail on test for windows, Takumi reported that it passes mingw and msvc.

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

13 years agooperator->() in PreprocessingRecord::iterator is useless since we
Argyrios Kyrtzidis [Wed, 7 Sep 2011 03:43:39 +0000 (03:43 +0000)]
operator->() in PreprocessingRecord::iterator is useless since we
are returning a pointer to pointer.

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Wed, 7 Sep 2011 02:02:10 +0000 (02:02 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
DiagnoseLogicalAndInLogicalOrLHS()
DiagnoseBinOpPrecedence()
ActOnBinOp()
BuildBinOp()

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Wed, 7 Sep 2011 01:49:20 +0000 (01:49 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
CreateBuiltinBinOp()
DiagnoseBitwisePrecedence()

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

13 years agoSwitch the CharSourceRange array to a small vector. The array was
Chandler Carruth [Wed, 7 Sep 2011 01:47:09 +0000 (01:47 +0000)]
Switch the CharSourceRange array to a small vector. The array was
a stack array of a magical size with an assert() that we never
overflowed it. That seems incredibly risky. We also have a very nice API
for bundling up a vector we expect to usually have a small size without
loss of functionality or security if the size is excessive.

The fallout is to remove the last pointer+size parameter pair that are
traced through the recursive caret diagnostic emission.

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

13 years agoSwitch clang over to using fence/atomicrmw/cmpxchg instead of the intrinsics (which...
Eli Friedman [Wed, 7 Sep 2011 01:41:24 +0000 (01:41 +0000)]
Switch clang over to using fence/atomicrmw/cmpxchg instead of the intrinsics (which will go away).  LLVM CodeGen does almost exactly the same thing with these and the old intrinsics, so I'm reasonably confident this will not break anything.

There are still a few issues which need to be resolved with code generation for atomic load and store, so I'm not converting the places which need those for now.

I'm not entirely sure what to do about __builtin_llvm_memory_barrier: the fence instruction doesn't expose all the possibilities which can be expressed by __builtin_llvm_memory_barrier.  I would appreciate hearing from anyone who is using this intrinsic.

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Wed, 7 Sep 2011 01:33:52 +0000 (01:33 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
CheckAssignmentOperands()
DiagnoseSelfAssignment()
checkArithmeticNull()

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Wed, 7 Sep 2011 01:19:57 +0000 (01:19 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
CheckVectorCompareOperands()
CheckBitwiseOperands()
CheckLogicalOperands()

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

13 years agoChange the self-reference visitor (which gives the warning for self-reference oninita...
Richard Trieu [Wed, 7 Sep 2011 00:58:53 +0000 (00:58 +0000)]
Change the self-reference visitor (which gives the warning for self-reference oninitalization warning of -Wuninitialized) to exclude member variables that can decay into pointers.  This will cause it to no longer warn on this code:

struct foo { char a[100], *e; } bar = { .e = bar.a };

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

13 years agoobjc-gc: Don't force a __strong type'd property
Fariborz Jahanian [Wed, 7 Sep 2011 00:38:49 +0000 (00:38 +0000)]
objc-gc: Don't force a __strong type'd property
to be 'weak'. This prevents a crash and should
probably be flagged as error - later to come.

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

13 years agoIn Microsoft mode, if we are inside a template class member function and we can't...
Francois Pichet [Wed, 7 Sep 2011 00:14:57 +0000 (00:14 +0000)]
In Microsoft mode, if we are inside a template class member function and we can't resolve a function call then create a type-dependent CallExpr even if the function has no type dependent arguments. The goal is to postpone name lookup to instantiation time to be able to search into type dependent base classes.

With this patch in, clang will generate only 37 errors (down from 212) when parsing a typical MFC source file.

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

13 years ago[driver] When clang crashes, don't try to generate diagnostics (i.e.,
Chad Rosier [Tue, 6 Sep 2011 23:52:36 +0000 (23:52 +0000)]
[driver] When clang crashes, don't try to generate diagnostics (i.e.,
preprocessor output) with multiple -arch options.

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

13 years agoobjc-gc: Adds support for "weak" property attribute under GC.
Fariborz Jahanian [Tue, 6 Sep 2011 23:32:40 +0000 (23:32 +0000)]
objc-gc: Adds support for  "weak" property attribute under GC.
// rdar://10073896

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

13 years agoRemove the doxyment for this now defunct parameter.
Chandler Carruth [Tue, 6 Sep 2011 22:34:36 +0000 (22:34 +0000)]
Remove the doxyment for this now defunct parameter.

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

13 years agoDon't recompute the presumed loc twice in 5 lines of code... Spotted by
Chandler Carruth [Tue, 6 Sep 2011 22:34:33 +0000 (22:34 +0000)]
Don't recompute the presumed loc twice in 5 lines of code... Spotted by
inspection.

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

13 years agoUse ArrayRef for the fixit hint array rather than a pointer and a size.
Chandler Carruth [Tue, 6 Sep 2011 22:31:44 +0000 (22:31 +0000)]
Use ArrayRef for the fixit hint array rather than a pointer and a size.
Clean up loops over the hints to use the more idiomatic iterator form in
LLVM and Clang.

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

13 years agoHoist the construction of the FixItHint line into a member function with
Chandler Carruth [Tue, 6 Sep 2011 22:01:04 +0000 (22:01 +0000)]
Hoist the construction of the FixItHint line into a member function with
a defined interface. This isn't as nice as the previous one, but should
get better as I push through better data types in all these functions.

Also, I'm hoping to pull some aspects of this out into a common routine
(such as tab expansion).

Again, WIP, comments welcome as I'm going through.

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 21:43:51 +0000 (21:43 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
CheckCompareOperands()

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

13 years agoWhen extracting the callee declaration from a call expression, be sure
Douglas Gregor [Tue, 6 Sep 2011 21:41:04 +0000 (21:41 +0000)]
When extracting the callee declaration from a call expression, be sure
to look through SubstNonTypeTemplateParmExprs. Then, update the IR
generation of CallExprs to actually use CallExpr::getCalleeDecl()
rather than attempting to mimick its behavior (badly).

Fixes <rdar://problem/10063539>.

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 21:27:33 +0000 (21:27 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
checkEnumComparison()
diagnoseDistinctPointerComparison()
convertPointersToCompositeType()
diagnoseFunctionPointerToVoidComparison()

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 21:21:28 +0000 (21:21 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
DiagnoseBadShiftValues()
CheckShiftOperands()

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 21:13:51 +0000 (21:13 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
diagnoseArithmeticOnTwoVoidPointers()
checkArithmeticBinOpPointerOperands()
diagnosePointerIncompatibility()
CheckAdditionOperands()
CheckSubtractionOperands()

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 21:01:04 +0000 (21:01 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
CheckVectorOperands()
CheckMultiplyDivideOperands()
CheckRemainderOperands()

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

13 years agoPlace 'equality comparison with extraneous parentheses...' into a subgroup of -Wparen...
Ted Kremenek [Tue, 6 Sep 2011 20:58:32 +0000 (20:58 +0000)]
Place 'equality comparison with extraneous parentheses...' into a subgroup of -Wparentheses called -Wparentheses-equality.

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

13 years agoImplement the Named Return Value Optimization (NRVO) for blocks.
Douglas Gregor [Tue, 6 Sep 2011 20:46:03 +0000 (20:46 +0000)]
Implement the Named Return Value Optimization (NRVO) for blocks.

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 20:40:12 +0000 (20:40 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
CheckTransparentUnionArgumentConstraints()
CheckSingleAssignmentConstraints()
InvalidOperands()

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

13 years agoImplement the Named Return Value Optimization (NRVO) for Objective-C++
Douglas Gregor [Tue, 6 Sep 2011 20:33:37 +0000 (20:33 +0000)]
Implement the Named Return Value Optimization (NRVO) for Objective-C++
methods. Fixes PR10835 / <rdar://problem/10050178>.

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 20:30:53 +0000 (20:30 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
CheckAssignmentConstraints()

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 20:21:22 +0000 (20:21 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
checkPointerTypesForAssignment()
checkBlockPointerTypesForAssignment()
checkObjCPointerTypesForAssignment()
CheckAssignmentConstraints()

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 20:06:39 +0000 (20:06 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
DiagnoseConditionalForNull()
CheckConditionalOperands()
IsArithmeticBinaryExpr()
DiagnoseConditionalPrecedence()

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

13 years agoSpelling.
Benjamin Kramer [Tue, 6 Sep 2011 19:57:14 +0000 (19:57 +0000)]
Spelling.

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 19:52:52 +0000 (19:52 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
handleIntegerConversion()
UsualArithmeticConversions()

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

13 years agoDon't emit -Wpadded warnings without a valid SourceLocation. This can happen when...
Ted Kremenek [Tue, 6 Sep 2011 19:40:45 +0000 (19:40 +0000)]
Don't emit -Wpadded warnings without a valid SourceLocation.  This can happen when RecordLayoutBuilder is used by Codegen, not Sema.

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

13 years agoRearrange code so that we pass the right pointer to delete[] when an exception is...
Eli Friedman [Tue, 6 Sep 2011 18:53:03 +0000 (18:53 +0000)]
Rearrange code so that we pass the right pointer to delete[] when an exception is thrown constructing the array elements in an array new expression.  Fixes PR10870.

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 18:38:41 +0000 (18:38 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
handleFloatConversion()
handleComplexIntConvsersion()

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

13 years agoRename variables in SemaExpr.cpp to give a more consistant naming scheme.
Richard Trieu [Tue, 6 Sep 2011 18:25:09 +0000 (18:25 +0000)]
Rename variables in SemaExpr.cpp to give a more consistant naming scheme.

ExprResult LHS, RHS,
Expr *LHSExpr, *RHSExpr
QualType LHSType, RHSType

Functions changed:
handleComplexFloatToComplexFloatConverstion()
handleComplexFloatConversion()

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

13 years agoAdvertise support for cxx_range_for as an extension in C++98 mode. Patch by Jean...
Richard Smith [Tue, 6 Sep 2011 18:03:41 +0000 (18:03 +0000)]
Advertise support for cxx_range_for as an extension in C++98 mode. Patch by Jean-Daniel Dupas!
Also provide a modicum of test coverage for ranged for in C++98.

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

13 years agoFinish implementing (de-)serialization of the CXXDefinitionData bits
Douglas Gregor [Tue, 6 Sep 2011 16:38:46 +0000 (16:38 +0000)]
Finish implementing (de-)serialization of the CXXDefinitionData bits
needed for implicit move constructors and move assignment
operators. Fixes PR10847.

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

13 years agoWhen performing a derived-to-base cast on the right-hand side of the
Douglas Gregor [Tue, 6 Sep 2011 16:26:56 +0000 (16:26 +0000)]
When performing a derived-to-base cast on the right-hand side of the
synthesized move assignment within an implicitly-defined move
assignment operator, be sure to treat the derived-to-base cast as an
xvalue (rather than an lvalue). Otherwise, we'll end up getting the
wrong constructor.

Optimize a direct call to a trivial move assignment operator to an
aggregate copy, as we do for trivial copy assignment operators, and
update the the assertion in CodeGenFunction::EmitAggregateCopy() to
cope with this optimization.

Fixes PR10860.

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

13 years agoPR10867: Work around a bug in lit. Multiple RUN: lines are joined with &&, so:
Richard Smith [Tue, 6 Sep 2011 03:01:15 +0000 (03:01 +0000)]
PR10867: Work around a bug in lit. Multiple RUN: lines are joined with &&, so:

  RUN: foo
  RUN: bar || true

is equivalent to:

  RUN: foo && bar || true

which is equivalent to:

  RUN: (foo && bar) || true

This resulted in several of the fixit tests not really testing anything.

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

13 years agoAdd missing dependency
Peter Collingbourne [Tue, 6 Sep 2011 02:08:40 +0000 (02:08 +0000)]
Add missing dependency

Spotted by Ninja.

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

13 years agoFix typo
Peter Collingbourne [Tue, 6 Sep 2011 02:08:36 +0000 (02:08 +0000)]
Fix typo

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

13 years agoAdd the resource directory to the search path for Driver::GetFilePath,
Peter Collingbourne [Tue, 6 Sep 2011 02:08:31 +0000 (02:08 +0000)]
Add the resource directory to the search path for Driver::GetFilePath,
as well as the search path printed by -print-search-dirs.

The main purpose of this change is to cause -print-file-name=include
to print the path to the include directory under Clang's resource
directory, instead of the system compiler's include directory, whose
header files Clang may not be able to parse.  Some build scripts will
do something like:
  $(CC) -nostdinc -I`$(CC) -print-file-name=include`
to exclude all header paths except the compiler's.

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

13 years agoSpeed up BCPL comment lexing by looking aggressively for newlines and then scannig...
Benjamin Kramer [Mon, 5 Sep 2011 07:19:39 +0000 (07:19 +0000)]
Speed up BCPL comment lexing by looking aggressively for newlines and then scannig backwards to see if the newline is escaped.

3% speedup in preprocessing all of clang with -Eonly. Also includes a small testcase for coverage.

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

13 years agoUse the Lexer's definition of whitespace here.
Benjamin Kramer [Mon, 5 Sep 2011 07:19:35 +0000 (07:19 +0000)]
Use the Lexer's definition of whitespace here.

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

13 years agoStop cluttering the test directory with temporary files.
Benjamin Kramer [Mon, 5 Sep 2011 07:19:32 +0000 (07:19 +0000)]
Stop cluttering the test directory with temporary files.

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

13 years agoEnable -Wdangling-fields by default in Clang. I've run this warning over
Chandler Carruth [Mon, 5 Sep 2011 05:47:35 +0000 (05:47 +0000)]
Enable -Wdangling-fields by default in Clang. I've run this warning over
a very large chunk of code and found zero false positives. I've only
found a few bugs, but that likely is because bugs of this nature
actually do manifest. We've also identified several bugs that were
caught by Valgrind, but would have been caught faster and more easily
with this warning.

If anyone has concerns, or this causes fallout on any build bots, lemme
know. I'm happy to just put it under -Wmost.

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

13 years agoImplement the suggested resolution of WG21 N3307 issue 19: When determining whether...
Richard Smith [Mon, 5 Sep 2011 02:13:09 +0000 (02:13 +0000)]
Implement the suggested resolution of WG21 N3307 issue 19: When determining whether a class is an aggregate in C++0x, treat all functions which are neither deleted nor defaulted as user-provided, not just special member functions. The wording of the standard only defines the term "user-provided" for special member functions, but the intent seems to be that any function can be user-provided.

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

13 years agoPR10506: Extend test for temporary cleanups in range-based for loop to cover the...
Richard Smith [Sun, 4 Sep 2011 23:52:03 +0000 (23:52 +0000)]
PR10506: Extend test for temporary cleanups in range-based for loop to cover the dependent case.

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

13 years agoPass 0 instead of a empty TemplateArgumentListInfo when creating a CXXDependentScopeM...
Francois Pichet [Sun, 4 Sep 2011 23:00:48 +0000 (23:00 +0000)]
Pass 0 instead of a empty TemplateArgumentListInfo when creating a CXXDependentScopeMemberExpr to handle a "this->" fixit (lookup into dependent bases of class template)

Otherwise the fixit doesn't really work for subsequent lookup.

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

13 years agoUse const_cast to avoid warnings.
Benjamin Kramer [Sun, 4 Sep 2011 20:26:28 +0000 (20:26 +0000)]
Use const_cast to avoid warnings.

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

13 years agoPR10458: Last part of providing 'auto' type specifier as an extension in C++98: permi...
Richard Smith [Sun, 4 Sep 2011 20:24:20 +0000 (20:24 +0000)]
PR10458: Last part of providing 'auto' type specifier as an extension in C++98: permit it within type-ids.

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

13 years agoPR10458: Finesse behaviour of C++0x features when in pre-0x mode. Accept for-range...
Richard Smith [Sun, 4 Sep 2011 19:54:14 +0000 (19:54 +0000)]
PR10458: Finesse behaviour of C++0x features when in pre-0x mode. Accept for-range and auto with an ExtWarn, and produce a -Wc++0x-compat warning in C++98 mode when auto is used as a storage class.

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

13 years agoAdd test case for defaulted copy and move structure validation.
Sebastian Redl [Sun, 4 Sep 2011 18:14:28 +0000 (18:14 +0000)]
Add test case for defaulted copy and move structure validation.
Fix bug this uncovered.
Address minor comments from Doug.
Enable cxx_implicit_moves feature.

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

13 years agoHandle a code-completion token being passed to the macro stringify operator.
Argyrios Kyrtzidis [Sun, 4 Sep 2011 03:32:19 +0000 (03:32 +0000)]
Handle a code-completion token being passed to the macro stringify operator.
Fixes http://llvm.org/PR10826.

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

13 years agoSupport code-completion for C++ inline methods and ObjC buffering methods.
Argyrios Kyrtzidis [Sun, 4 Sep 2011 03:32:15 +0000 (03:32 +0000)]
Support code-completion for C++ inline methods and ObjC buffering methods.

Previously we would cut off the source file buffer at the code-completion
point; this impeded code-completion inside C++ inline methods and,
recently, with buffering ObjC methods.

Have the code-completion inserted into the source buffer so that it can
be buffered along with a method body. When we actually hit the code-completion
point the cut-off lexing or parsing.

Fixes rdar://10056932&8319466

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

13 years agoFix Lexer::ComputePreamble when MaxLines parameter is non-zero.
Argyrios Kyrtzidis [Sun, 4 Sep 2011 03:32:04 +0000 (03:32 +0000)]
Fix Lexer::ComputePreamble when MaxLines parameter is non-zero.

The function was only counting lines that included tokens and not empty lines,
but MaxLines (mainly initiated to the line where the code-completion point resides)
is a count of overall lines (even empty ones).

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

13 years agoMore unused variable removal.
Benjamin Kramer [Sat, 3 Sep 2011 08:46:20 +0000 (08:46 +0000)]
More unused variable removal.

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

13 years agoMake helpers static, remove unused variables.
Benjamin Kramer [Sat, 3 Sep 2011 03:30:59 +0000 (03:30 +0000)]
Make helpers static, remove unused variables.

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

13 years agoTeach -Wdangling-field to warn about temporaries bound to references as
Chandler Carruth [Sat, 3 Sep 2011 02:21:57 +0000 (02:21 +0000)]
Teach -Wdangling-field to warn about temporaries bound to references as
well.

Also, clean up the flow of the code a bit, and factor things more
nicely.

Finally, add the test case that was missing from my previous
commit (sorry), with new tests added to cover temporaries and other fun
cases.

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

13 years agoAdd a simple new warning to catch blatantly dangling pointer and
Chandler Carruth [Sat, 3 Sep 2011 01:14:15 +0000 (01:14 +0000)]
Add a simple new warning to catch blatantly dangling pointer and
reference members of classes. We've had several bugs reported because of
this, and there's no reason not to flag it right away in the compiler.

Comments especially welcome on the strategy for implementing this
warning (IE, what should trigger this?) and on the text of the warning
itself.

I'm going to extend this to cover obvious cases with temporaries and
beef up the test cases some in subsequent patches. I'll then run it over
a large codebase and make sure its not misbehaving before I add it to
-Wall or turn it on by default. I think this one might be a good
candidate for on by default.

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

13 years agoRevise test and see if it passes with a release-built clang.
Fariborz Jahanian [Fri, 2 Sep 2011 21:47:51 +0000 (21:47 +0000)]
Revise test and see if it passes with a release-built clang.

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

13 years agoFix some indenting issues in SemaExpr.cpp
Richard Trieu [Fri, 2 Sep 2011 21:44:27 +0000 (21:44 +0000)]
Fix some indenting issues in SemaExpr.cpp

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

13 years agoblocks: Support capturing complex variable in block.
Fariborz Jahanian [Fri, 2 Sep 2011 21:33:44 +0000 (21:33 +0000)]
blocks: Support capturing complex variable in block.
// rdar://10033896

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

13 years agoRefactor UsualArithmeticConversions() in SemaExpr.cpp into several functions.
Richard Trieu [Fri, 2 Sep 2011 20:58:51 +0000 (20:58 +0000)]
Refactor UsualArithmeticConversions() in SemaExpr.cpp into several functions.

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

13 years agorevert patch in r139020
Fariborz Jahanian [Fri, 2 Sep 2011 20:03:16 +0000 (20:03 +0000)]
revert patch in r139020

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

13 years ago-Wuninitialized: fix insidious bug resulting from interplay of blocks and dead code...
Ted Kremenek [Fri, 2 Sep 2011 19:39:26 +0000 (19:39 +0000)]
-Wuninitialized: fix insidious bug resulting from interplay of blocks and dead code.  Fixes <rdar://problem/10060250>.

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

13 years agoblocks: Support capturing complex variable in block.
Fariborz Jahanian [Fri, 2 Sep 2011 18:39:40 +0000 (18:39 +0000)]
blocks: Support capturing complex variable in block.
// rdar://10033896

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

13 years agoMake StmtDumper::VisitCXXFunctionalCastExpr dump the attached cast kind. Fix the...
Eli Friedman [Fri, 2 Sep 2011 17:38:59 +0000 (17:38 +0000)]
Make StmtDumper::VisitCXXFunctionalCastExpr dump the attached cast kind.  Fix the cast kind for a cast from floating-point to enum type.  (The difference isn't actually visible, but that's just because IRGen is overly forgiving.)  Per report by Enea Zaffanella on cfe-dev.

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

13 years ago[analyzer] Remove TransferFuncs.h, then deal with the fallout.
Jordy Rose [Fri, 2 Sep 2011 08:02:59 +0000 (08:02 +0000)]
[analyzer] Remove TransferFuncs.h, then deal with the fallout.

And with that, TransferFuncs is gone!

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

13 years ago[analyzer] Move RetainReleaseChecker to the Checkers library and rename it to RetainC...
Jordy Rose [Fri, 2 Sep 2011 06:44:22 +0000 (06:44 +0000)]
[analyzer] Move RetainReleaseChecker to the Checkers library and rename it to RetainCountChecker...and clean up the file while I'm at it.

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

13 years agoHoist the emission of parseable fixits into a helper method, simplifying
Chandler Carruth [Fri, 2 Sep 2011 06:30:30 +0000 (06:30 +0000)]
Hoist the emission of parseable fixits into a helper method, simplifying
and reducing indentation through the clever use of early exits. ;]

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

13 years ago[analyzer] Remove lingering CFRefCount creation, which would have resulted in a leak...
Jordy Rose [Fri, 2 Sep 2011 06:29:27 +0000 (06:29 +0000)]
[analyzer] Remove lingering CFRefCount creation, which would have resulted in a leak. There's room for improvement here...

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

13 years ago[analyzer] Fix member initialization order. No functionality change.
Jordy Rose [Fri, 2 Sep 2011 06:21:26 +0000 (06:21 +0000)]
[analyzer] Fix member initialization order. No functionality change.

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

13 years ago[analyzer] Move the knowledge of whether or not GC is enabled for the current analysi...
Jordy Rose [Fri, 2 Sep 2011 05:55:19 +0000 (05:55 +0000)]
[analyzer] Move the knowledge of whether or not GC is enabled for the current analysis from CFRefCount to ExprEngine.

Remove TransferFuncs from ExprEngine and AnalysisConsumer.

Demote RetainReleaseChecker to a regular checker, and give it the name osx.cocoa.RetainCount (class name change coming shortly). Update tests accordingly.

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

13 years agoMove the warning for different enum comparisons and the warning for using NULL as...
Richard Trieu [Fri, 2 Sep 2011 03:48:46 +0000 (03:48 +0000)]
Move the warning for different enum comparisons and the warning for using NULL as a non-pointer in a binary operation into separate functions.

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

13 years agoReduce code duplication for pointer comparisons in CheckCompareOperands().
Richard Trieu [Fri, 2 Sep 2011 02:55:45 +0000 (02:55 +0000)]
Reduce code duplication for pointer comparisons in CheckCompareOperands().

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

13 years agoPull out incomplete pointer type checking code, used from arithmetic checking functio...
Richard Trieu [Fri, 2 Sep 2011 02:15:37 +0000 (02:15 +0000)]
Pull out incomplete pointer type checking code, used from arithmetic checking functions, into its own function.

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

13 years agoRefactor CheckConditionalOperands() by moving chunks of code to helper functions...
Richard Trieu [Fri, 2 Sep 2011 01:51:02 +0000 (01:51 +0000)]
Refactor CheckConditionalOperands() by moving chunks of code to helper functions making a slimmer function.

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

13 years agoRefactor CheckAddressOfOperand() by pulling out redundant code and moving hard coding...
Richard Trieu [Fri, 2 Sep 2011 00:47:55 +0000 (00:47 +0000)]
Refactor CheckAddressOfOperand() by pulling out redundant code and moving hard coding strings from SemaExpr.cpp to DiagnosticSemaKinds.td.

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

13 years agoAlways construct an ASTReader with a non-NULL ASTContext and
Douglas Gregor [Fri, 2 Sep 2011 00:26:20 +0000 (00:26 +0000)]
Always construct an ASTReader with a non-NULL ASTContext and
Preprocessor, eliminating the constructor that was used by ASTUnit
(which didn't provide an ASTContext or Prepreprocessor). Ensuring that
both objects are non-NULL will simplify module loading (but none of
that is done yet).

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

13 years agoExtend the ASTContext constructor to delay the initialization of
Douglas Gregor [Fri, 2 Sep 2011 00:18:52 +0000 (00:18 +0000)]
Extend the ASTContext constructor to delay the initialization of
builtin types (When requested). This is another step toward making
ASTUnit build the ASTContext as needed when loading an AST file,
rather than doing so after the fact. No actual functionality change (yet).

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

13 years agoAllow the preprocessor to be constructed without performing target-
Douglas Gregor [Thu, 1 Sep 2011 23:39:15 +0000 (23:39 +0000)]
Allow the preprocessor to be constructed without performing target-
and language-specific initialization. Use this to allow ASTUnit to
create a preprocessor object *before* loading the AST file. No actual
functionality change.

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

13 years agoRefactor CheckAdditionOperands(), CheckSubtractionOperands(), and CheckIncrementDecre...
Richard Trieu [Thu, 1 Sep 2011 22:53:23 +0000 (22:53 +0000)]
Refactor CheckAdditionOperands(), CheckSubtractionOperands(), and CheckIncrementDecrementOperand() in SemaExpr.cpp to move reused code to separate functions.

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

13 years agoDon't try keeping a 'LeadingEmptyMacroLoc' in NullStmt. This fails
Argyrios Kyrtzidis [Thu, 1 Sep 2011 21:53:45 +0000 (21:53 +0000)]
Don't try keeping a 'LeadingEmptyMacroLoc' in NullStmt. This fails
in the face of buffering C++/ObjC method bodies.

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

13 years ago[arcmt] Clear out temporary dirs in the tests or we may get failures because of lefto...
Argyrios Kyrtzidis [Thu, 1 Sep 2011 21:53:39 +0000 (21:53 +0000)]
[arcmt] Clear out temporary dirs in the tests or we may get failures because of leftovers.

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

13 years agoDon't try to emit unsupported templated friend declarations. They're unsupported
Nick Lewycky [Thu, 1 Sep 2011 21:49:51 +0000 (21:49 +0000)]
Don't try to emit unsupported templated friend declarations. They're unsupported
and may very well be dependent-types, triggering an assertion in debug info
codegen.

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

13 years agoExtend the self-reference warning to catch when a constructor references itself upon...
Richard Trieu [Thu, 1 Sep 2011 21:44:13 +0000 (21:44 +0000)]
Extend the self-reference warning to catch when a constructor references itself upon initialization, such as using itself within its own copy constructor.

struct S {};
S s(s);

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

13 years ago[arcmt] Fix test/ARCMT/remove-statements.m regression due to
Argyrios Kyrtzidis [Thu, 1 Sep 2011 20:53:18 +0000 (20:53 +0000)]
[arcmt] Fix test/ARCMT/remove-statements.m regression due to
Objective-C method buffering(rdar://10056942)

Turned out the same issue existed for C++ inline methods.

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

13 years agoTeach ASTContext and Preprocessor to hold on to references to the same
Douglas Gregor [Thu, 1 Sep 2011 20:23:19 +0000 (20:23 +0000)]
Teach ASTContext and Preprocessor to hold on to references to the same
LangOptions, rather than making distinct copies of
LangOptions. Granted, LangOptions doesn't actually get modified, but
this will eventually make it easier to construct ASTContext and
Preprocessor before we know all of the LangOptions.

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

13 years agodefault property synthesis is off by default
Fariborz Jahanian [Thu, 1 Sep 2011 20:23:17 +0000 (20:23 +0000)]
default property synthesis is off by default
for now.

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

13 years agoMake test slightly trickier
Douglas Gregor [Thu, 1 Sep 2011 19:02:18 +0000 (19:02 +0000)]
Make test slightly trickier

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

13 years agoobjective-c: Make auto synthesis of properties the default.
Fariborz Jahanian [Thu, 1 Sep 2011 17:50:05 +0000 (17:50 +0000)]
objective-c: Make auto synthesis of properties the default.
This concludes //rdar://8843851

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

13 years agoModules hide macro definitions by default, so that silly things like
Douglas Gregor [Thu, 1 Sep 2011 17:04:32 +0000 (17:04 +0000)]
Modules hide macro definitions by default, so that silly things like
include guards don't show up as macro definitions in every translation
unit that imports a module. Macro definitions can, however, be
exported with the intentionally-ugly #__export_macro__
directive. Implement this feature by not even bothering to serialize
non-exported macros to a module, because clients of that module need
not (should not) know that these macros even exist.

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

13 years agoEnable -fdelayed-template-parsing by default on Win32.
Francois Pichet [Thu, 1 Sep 2011 16:38:08 +0000 (16:38 +0000)]
Enable -fdelayed-template-parsing by default on Win32.
I had to force -fno-delayed-template-parsing on some Index tests because delayed template parsing will change the output of some tests.

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

13 years agoFix PR10744 by adding the toolchain path to the regular program path
Rafael Espindola [Thu, 1 Sep 2011 16:25:49 +0000 (16:25 +0000)]
Fix PR10744 by adding the toolchain path to the regular program path
and doing a simple search. Before we would manually check for the linker
before the -B options were searched.

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