]> granicus.if.org Git - clang/log
clang
15 years agoUpdate checker build.
Ted Kremenek [Tue, 7 Apr 2009 14:26:58 +0000 (14:26 +0000)]
Update checker build.

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

15 years agoFix typo in newly added test case.
Steve Naroff [Tue, 7 Apr 2009 14:22:40 +0000 (14:22 +0000)]
Fix typo in newly added test case.

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

15 years agoChange the type of ObjC @ string constants (from NSConstantString->NSString).
Steve Naroff [Tue, 7 Apr 2009 14:18:33 +0000 (14:18 +0000)]
Change the type of ObjC @ string constants (from NSConstantString->NSString).

This fixes <rdar://problem/6757102> clang type for @"xxx" is "NSConstantString *" (GCC type is "NSString *").

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

15 years agoHandle use side of __objc_exception__ attribute; when using an
Daniel Dunbar [Tue, 7 Apr 2009 06:43:45 +0000 (06:43 +0000)]
Handle use side of __objc_exception__ attribute; when using an
exception with this attribute we don't need to emit a weak definition
for the exception type information.

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

15 years ago*everyone* knows that __weak is not defined on linux :)
Chris Lattner [Tue, 7 Apr 2009 06:05:28 +0000 (06:05 +0000)]
*everyone* knows that __weak is not defined on linux :)

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

15 years agoimplement rdar://6762183. I'm not sure if it is more insane that
Chris Lattner [Tue, 7 Apr 2009 06:02:44 +0000 (06:02 +0000)]
implement rdar://6762183.  I'm not sure if it is more insane that
GCC ignores macro definitions after \n's or that real code depends
on this.

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

15 years agoVarious fixes to symbols used for Obj-C x86_64 metadata.
Daniel Dunbar [Tue, 7 Apr 2009 05:48:37 +0000 (05:48 +0000)]
Various fixes to symbols used for Obj-C x86_64 metadata.
 - Changed method names to match gcc (categories names still aren't
   mangled in).

 - Expose correct name for class and metadata symbols (although
   -fvisibility=hidden isn't yet correct).

 - Remove several things from llvm.used that didn't need to be there
   (I suspect this can still be trimmed).

 - Don't use asm-prefix extension for _objc_empty_{cache,vtable} (not
   needed).

 - Hide EH type class info with -fvisibility=hidden

 - Change setGlobal[Option]Visibility to not change the visibility of
   functions with internal linkage.

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

15 years agoAdd test case.
Ted Kremenek [Tue, 7 Apr 2009 05:33:18 +0000 (05:33 +0000)]
Add test case.

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

15 years agoRemove hack from LiveVariables analysis where variables whose address are taken
Ted Kremenek [Tue, 7 Apr 2009 05:25:24 +0000 (05:25 +0000)]
Remove hack from LiveVariables analysis where variables whose address are taken
are considered 'live'. This hack isn't needed anymore because we have a
separation in the path-sensitive analyzer between variable names and bindings;
the analyzer can continue to reason about the storage of a variable after its
name is no longer directly referenced.  Now the live variables analysis literally means "is this name live".

Along this line, update the dead stores checker to explicitly look for variables
whose values have escaped.

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

15 years agodefine __va_copy unconditionally, but va_copy only in c99 or non-ansi mode.
Chris Lattner [Tue, 7 Apr 2009 05:12:42 +0000 (05:12 +0000)]
define __va_copy unconditionally, but va_copy only in c99 or non-ansi mode.
Fixes rdar://6759546, some code that actually used __va_copy because they
thought it was "more portable".

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

15 years agoRemove GetLeakNode. This isn't the right approach.
Ted Kremenek [Tue, 7 Apr 2009 05:07:44 +0000 (05:07 +0000)]
Remove GetLeakNode.  This isn't the right approach.

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

15 years agoRemove period.
Ted Kremenek [Tue, 7 Apr 2009 04:54:31 +0000 (04:54 +0000)]
Remove period.

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

15 years agoEagerly compute the leak location when a leak occurs at the end of a path.
Ted Kremenek [Tue, 7 Apr 2009 04:54:20 +0000 (04:54 +0000)]
Eagerly compute the leak location when a leak occurs at the end of a path.

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

15 years agoRemoved some commented code.
Ted Kremenek [Tue, 7 Apr 2009 04:53:35 +0000 (04:53 +0000)]
Removed some commented code.

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

15 years agoThe __weak and __strong defines are common to all darwin targets
Chris Lattner [Tue, 7 Apr 2009 04:48:21 +0000 (04:48 +0000)]
The __weak and __strong defines are common to all darwin targets
and are even set in C mode.  As such, move them to Targets.cpp.

__OBJC_GC__ is also darwin specific, but seems reasonable to always
define it when in objc-gc mode.

This fixes rdar://6761450

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

15 years agoRemove hack support for @try...@finally in source-level CFGs. The current hack
Ted Kremenek [Tue, 7 Apr 2009 04:26:02 +0000 (04:26 +0000)]
Remove hack support for @try...@finally in source-level CFGs. The current hack
had too many false positives in the analyzer.

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

15 years agoDriver: More verbosity reduction.
Daniel Dunbar [Tue, 7 Apr 2009 02:59:27 +0000 (02:59 +0000)]
Driver: More verbosity reduction.
 - Ignore some more -W options and -[fm] options which we can somewhat
   safely ignore.

 - Recognize that -W is an alias for -Wextra

W: -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wfour-char-constants -Winit-self -Wmissing-format-attribute -Wno-#warnings -Wno-comment -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wstrict-prototypes -Wunused-parameter

f: -fconstant-cfstrings -fdollars-in-identifiers -finline -finline-functions -fno-inline -fno-keep-inline-functions -fno-strict-aliasing -fobjc-atdefs -fobjc-call-cxx-cdtors -fobjc-new-property -fstack-protector

m: -mconstant-cfstrings -mfix-and-continue

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

15 years agoFix test (triple wasn't passed correctly, the driver doesn't accept
Daniel Dunbar [Tue, 7 Apr 2009 02:31:44 +0000 (02:31 +0000)]
Fix test (triple wasn't passed correctly, the driver doesn't accept
-mtriple).

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

15 years agoPathDiagnostic generation: experiment with avoiding generation of control-flow
Ted Kremenek [Tue, 7 Apr 2009 01:34:17 +0000 (01:34 +0000)]
PathDiagnostic generation: experiment with avoiding generation of control-flow
pieces between block entrance and block end unless necessary.

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

15 years agoImplement __sync_{add,sub,and,or,xor}_and_fetch and
Daniel Dunbar [Tue, 7 Apr 2009 00:55:51 +0000 (00:55 +0000)]
Implement __sync_{add,sub,and,or,xor}_and_fetch and
__sync_bool_compare_and_swap.
 - <rdar://problem/6762223> [sema/irgen] support
   __sync_bool_compare_and_swap and __sync_add_and_fetch

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

15 years agoRemove a FIXME, the driver handles -O4.
Daniel Dunbar [Tue, 7 Apr 2009 00:38:22 +0000 (00:38 +0000)]
Remove a FIXME, the driver handles -O4.

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

15 years agoUse the new getFunctionInfo that takes a BlockPointerType parameter, and get rid...
Anders Carlsson [Tue, 7 Apr 2009 00:20:24 +0000 (00:20 +0000)]
Use the new getFunctionInfo that takes a BlockPointerType parameter, and get rid of getBlockFunctionType from CGBlocks.cpp

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

15 years agoretain/release checker: When hunting for the leak location, don't walk the
Ted Kremenek [Tue, 7 Apr 2009 00:12:43 +0000 (00:12 +0000)]
retain/release checker: When hunting for the leak location, don't walk the
ExplodedGraph backwards. That may inadvertently result in reverse control-flow
edges in the PathDiagostic.

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

15 years agoDon't overguard to adding a control-flow piece when "alwaysAdd" is true.
Ted Kremenek [Tue, 7 Apr 2009 00:11:40 +0000 (00:11 +0000)]
Don't overguard to adding a control-flow piece when "alwaysAdd" is true.

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

15 years agoWarn instead of error on duplicate protocol definitions.
Fariborz Jahanian [Mon, 6 Apr 2009 23:43:32 +0000 (23:43 +0000)]
Warn instead of error on duplicate protocol definitions.
Be kind to so many projects which are doing this (and be
like gcc).

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

15 years agoRewrite control-flow diagnostic generation "extensive" algorithm using "edge
Ted Kremenek [Mon, 6 Apr 2009 23:06:54 +0000 (23:06 +0000)]
Rewrite control-flow diagnostic generation "extensive" algorithm using "edge
contexts".  This allows us to use a stack of contexts to keep track of what control-flow pieces to include when exiting blocks like 'if', 'for', etc.

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

15 years agoPathDiagnosticLocation now also wraps Decls.
Ted Kremenek [Mon, 6 Apr 2009 22:33:35 +0000 (22:33 +0000)]
PathDiagnosticLocation now also wraps Decls.

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

15 years agoMake casting 'super' a deprecated warning (instead of a hard error).
Steve Naroff [Mon, 6 Apr 2009 22:07:54 +0000 (22:07 +0000)]
Make casting 'super' a deprecated warning (instead of a hard error).

This will simplify clang adoption, and is probably better "etiquette" (since gcc has always accepted this idiom without warning). Once we are over the adoption hurdle, we can turn this into an error.

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

15 years agoFix typo.
Anders Carlsson [Mon, 6 Apr 2009 21:55:22 +0000 (21:55 +0000)]
Fix typo.

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

15 years agoFixed the Fix-It hints for comparison against a string literal. Thanks, Chris!
Douglas Gregor [Mon, 6 Apr 2009 18:45:53 +0000 (18:45 +0000)]
Fixed the Fix-It hints for comparison against a string literal. Thanks, Chris!

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

15 years agoFixed visibility issues related to objc2's synthesized
Fariborz Jahanian [Mon, 6 Apr 2009 18:30:00 +0000 (18:30 +0000)]
Fixed visibility issues related to objc2's synthesized
ivars.

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

15 years agoAdd a getFunctionInfo that takes a BlockPointerType.
Anders Carlsson [Mon, 6 Apr 2009 18:05:26 +0000 (18:05 +0000)]
Add a getFunctionInfo that takes a BlockPointerType.

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

15 years agoSimplify C++ member function calls.
Anders Carlsson [Mon, 6 Apr 2009 17:45:20 +0000 (17:45 +0000)]
Simplify C++ member function calls.

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

15 years agoDefine __OPTIMIZE__ and __OPTIMIZE_SIZE__ if the -O[12] and -Os flags are passed...
Anders Carlsson [Mon, 6 Apr 2009 17:37:10 +0000 (17:37 +0000)]
Define __OPTIMIZE__ and __OPTIMIZE_SIZE__ if the -O[12] and -Os flags are passed to the compiler.

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

15 years agoenable -std=c9x and -std=iso9899:199x, patch by Ed Schouten!
Chris Lattner [Mon, 6 Apr 2009 17:17:55 +0000 (17:17 +0000)]
enable -std=c9x and -std=iso9899:199x, patch by Ed Schouten!

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

15 years agoAdd clang-cc to the xcodeproj file.
Anders Carlsson [Mon, 6 Apr 2009 17:11:27 +0000 (17:11 +0000)]
Add clang-cc to the xcodeproj file.

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

15 years agoDaniel convinced me that accepting "const va_list" arguments to va_arg is
Chris Lattner [Mon, 6 Apr 2009 17:07:34 +0000 (17:07 +0000)]
Daniel convinced me that accepting "const va_list" arguments to va_arg is
a really really bad idea.  Now that we emit an error about the unpromoted
type, users should be able to understand what is going on.

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

15 years agowritable property in a category of class's superclass
Fariborz Jahanian [Mon, 6 Apr 2009 16:59:10 +0000 (16:59 +0000)]
writable property in a category of class's superclass
makes the property writable in the current class.

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

15 years agoFix a couple of cases where Constant* pointers can dangle in
Chris Lattner [Mon, 6 Apr 2009 16:53:45 +0000 (16:53 +0000)]
Fix a couple of cases where Constant* pointers can dangle in
ObjCNonFragileABITypesHelper by converting them to dynamic
getters.  This fixes a crash on rdar://6757213.  The others
should be converted over as well.

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

15 years agoin va_arg diagnostics, print out the unpromoted type. This makes the
Chris Lattner [Sun, 5 Apr 2009 15:49:53 +0000 (15:49 +0000)]
in va_arg diagnostics, print out the unpromoted type.  This makes the
diagnostic use the va_list typedef more often, see the difference in the
changed testcase.

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

15 years agoFix output of ranges in analyzer plist files.
Ted Kremenek [Sun, 5 Apr 2009 02:08:28 +0000 (02:08 +0000)]
Fix output of ranges in analyzer plist files.

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

15 years agoApply a patch which adds 'OriginalParmVar' to the DeclContextPrinter by Jon
Zhongxing Xu [Sun, 5 Apr 2009 02:04:38 +0000 (02:04 +0000)]
Apply a patch which adds 'OriginalParmVar' to the DeclContextPrinter by Jon
Simons.

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

15 years agoAdd a warning for questionable va_args usage.
Chris Lattner [Sun, 5 Apr 2009 00:59:53 +0000 (00:59 +0000)]
Add a warning for questionable va_args usage.

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

15 years agoGCC compatibility: gcc allows applying va_args to const
Chris Lattner [Sun, 5 Apr 2009 00:52:59 +0000 (00:52 +0000)]
GCC compatibility: gcc allows applying va_args to const
va_lists for some reason.  This fixes rdar://6726818

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

15 years agofix rdar://6757323, where an escaped newline in a // comment
Chris Lattner [Sun, 5 Apr 2009 00:26:41 +0000 (00:26 +0000)]
fix rdar://6757323, where an escaped newline in a // comment
was causing the char after the newline to get eaten.

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

15 years agoAdd some basic support for generating C++ member functions.
Anders Carlsson [Sat, 4 Apr 2009 20:47:02 +0000 (20:47 +0000)]
Add some basic support for generating C++ member functions.

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

15 years agoExtend possible handled regparm(N) value
Anton Korobeynikov [Sat, 4 Apr 2009 10:27:50 +0000 (10:27 +0000)]
Extend possible handled regparm(N) value

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

15 years agoDriver: Handle -dumpversion, this is used by some configuration
Daniel Dunbar [Sat, 4 Apr 2009 05:17:38 +0000 (05:17 +0000)]
Driver: Handle -dumpversion, this is used by some configuration
scripts.

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

15 years agoDriver: Handle properly calling dsymutil when source input is
Daniel Dunbar [Sat, 4 Apr 2009 00:55:30 +0000 (00:55 +0000)]
Driver: Handle properly calling dsymutil when source input is
preceeded by a linker input flag.
 - <rdar://problem/6757236> clang should make a dSYM when going
   straight from source to binary

 - This still matches gcc, but the right way to solve this would be to
   detect the situation we care about (we are compiling from source
   and linking in one step), instead of looking at the suffix of the
   input file. The Tool doesn't quite have enough information to do
   this yet, however.

 - Also, find the suffix correctly.

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

15 years agoDriver: Automatically suppress warnings for duplicate versions of
Daniel Dunbar [Sat, 4 Apr 2009 00:52:26 +0000 (00:52 +0000)]
Driver: Automatically suppress warnings for duplicate versions of
flags which were used for something.

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

15 years agoTestcase for regparm codegen
Anton Korobeynikov [Sat, 4 Apr 2009 00:49:38 +0000 (00:49 +0000)]
Testcase for regparm codegen

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

15 years agoBasic support for regparm codegen
Anton Korobeynikov [Sat, 4 Apr 2009 00:49:24 +0000 (00:49 +0000)]
Basic support for regparm codegen

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

15 years agoProvide sema proper values of maximal number of arguments passed in registers.
Anton Korobeynikov [Fri, 3 Apr 2009 23:38:25 +0000 (23:38 +0000)]
Provide sema proper values of maximal number of arguments passed in registers.

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

15 years agoAdd support for calling C++ member functions.
Anders Carlsson [Fri, 3 Apr 2009 22:50:24 +0000 (22:50 +0000)]
Add support for calling C++ member functions.

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

15 years agoAdd a getFunctionInfo that takes a CXXMethodDecl.
Anders Carlsson [Fri, 3 Apr 2009 22:48:58 +0000 (22:48 +0000)]
Add a getFunctionInfo that takes a CXXMethodDecl.

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

15 years agoDriver: Add -Qunused-arguments option to suppress driver "unused
Daniel Dunbar [Fri, 3 Apr 2009 22:09:23 +0000 (22:09 +0000)]
Driver: Add -Qunused-arguments option to suppress driver "unused
arguments" warning.

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

15 years agoReal corener case of a method declared in a protocol
Fariborz Jahanian [Fri, 3 Apr 2009 21:51:32 +0000 (21:51 +0000)]
Real corener case of a method declared in a protocol
used in a class which declares a property of the same
name. This should not result in an unimplemented
method warning.

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

15 years agoimprove the string literal comparison warning to not call @encode's "string literals".
Chris Lattner [Fri, 3 Apr 2009 21:11:28 +0000 (21:11 +0000)]
improve the string literal comparison warning to not call @encode's "string literals".

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

15 years agoSentence-case bug type.
Ted Kremenek [Fri, 3 Apr 2009 21:10:31 +0000 (21:10 +0000)]
Sentence-case bug type.

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

15 years agoDriver: Explicitly ignore -fpch-preprocess when using clang, we don't
Daniel Dunbar [Fri, 3 Apr 2009 20:51:31 +0000 (20:51 +0000)]
Driver: Explicitly ignore -fpch-preprocess when using clang, we don't
need to do anything special to support this.

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

15 years agoReduce Driver verbosity by suppressing unused warning about another
Daniel Dunbar [Fri, 3 Apr 2009 20:33:20 +0000 (20:33 +0000)]
Reduce Driver verbosity by suppressing unused warning about another
cluster of -W options.

The list: -Waggregate-return -Wbad-function-cast -Wcast-qual
-Wformat-security -Wformat=2 -Wformat -Wmissing-declarations
-Wnewline-eof -Wno-parentheses -Wpacked -Wredundant-decls -Wshadow
-Wsign-compare -Wstrict-overflow= -Wstrict-overflow -Wuninitialized
-Wunknown-pragmas.

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

15 years agoretain/release checker: don't track NSPanel until we have better reasoning about
Ted Kremenek [Fri, 3 Apr 2009 19:02:51 +0000 (19:02 +0000)]
retain/release checker: don't track NSPanel until we have better reasoning about
the subtle ownership issues of such objects.

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

15 years agoadd fixit advice to an archiac ObjC issue.
Chris Lattner [Fri, 3 Apr 2009 18:38:42 +0000 (18:38 +0000)]
add fixit advice to an archiac ObjC issue.

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

15 years agoFix Clang on VC++, patch by Bixia Zheng!
Chris Lattner [Fri, 3 Apr 2009 18:23:42 +0000 (18:23 +0000)]
Fix Clang on VC++, patch by Bixia Zheng!

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

15 years agofix some warnings on VC++, patch by John Thompson!
Chris Lattner [Fri, 3 Apr 2009 17:31:50 +0000 (17:31 +0000)]
fix some warnings on VC++, patch by John Thompson!

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

15 years agoinitialize an ivar.
Chris Lattner [Fri, 3 Apr 2009 15:52:00 +0000 (15:52 +0000)]
initialize an ivar.

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

15 years agoAdd a comment/FIXME so Eli can sleep better:-))
Steve Naroff [Fri, 3 Apr 2009 09:44:50 +0000 (09:44 +0000)]
Add a comment/FIXME so Eli can sleep better:-))

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

15 years agoThis is the first step to gradually remove the use of loc::SymbolVal. Now
Zhongxing Xu [Fri, 3 Apr 2009 07:33:13 +0000 (07:33 +0000)]
This is the first step to gradually remove the use of loc::SymbolVal. Now
when creating symbolic values, we distinguish between location and non-location
values. For location values, we create a symbolic region instead of a
loc::SymbolVal.

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

15 years agoDo we have fixit advice for comments yet?
Daniel Dunbar [Fri, 3 Apr 2009 06:26:01 +0000 (06:26 +0000)]
Do we have fixit advice for comments yet?

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

15 years agoIgnore plus operands when looking up the operand number from a named operand. This...
Anders Carlsson [Fri, 3 Apr 2009 05:57:08 +0000 (05:57 +0000)]
Ignore plus operands when looking up the operand number from a named operand. This matches llvm-gcc and fixes PR3908.

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

15 years agoFix comment.
Daniel Dunbar [Fri, 3 Apr 2009 05:45:43 +0000 (05:45 +0000)]
Fix comment.

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

15 years agoImplement -fvisibility.
Fariborz Jahanian [Fri, 3 Apr 2009 03:28:57 +0000 (03:28 +0000)]
Implement -fvisibility.

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

15 years agoConvert region-design document to HTML.
Ted Kremenek [Fri, 3 Apr 2009 01:38:55 +0000 (01:38 +0000)]
Convert region-design document to HTML.

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

15 years agoDriver: Add missed translation for darwin::Preprocess (gcc), -d*
Daniel Dunbar [Fri, 3 Apr 2009 01:27:06 +0000 (01:27 +0000)]
Driver: Add missed translation for darwin::Preprocess (gcc), -d*
wasn't being forwarded.

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

15 years agoTweak test (now that http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090...
Steve Naroff [Fri, 3 Apr 2009 01:25:18 +0000 (01:25 +0000)]
Tweak test (now that http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090330/015001.html is fixed).

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

15 years agoAdd target hook for setting symbol prefix and section of unicode
Daniel Dunbar [Fri, 3 Apr 2009 00:57:44 +0000 (00:57 +0000)]
Add target hook for setting symbol prefix and section of unicode
string literals.

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

15 years agoFix a little typo that was killing de-serialization
Douglas Gregor [Fri, 3 Apr 2009 00:25:09 +0000 (00:25 +0000)]
Fix a little typo that was killing de-serialization

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

15 years agoMove the rest of the fixit tests to the FixIt area.
Mike Stump [Thu, 2 Apr 2009 23:44:32 +0000 (23:44 +0000)]
Move the rest of the fixit tests to the FixIt area.

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

15 years agoRename GeneratePCH action to GeneratePTH
Douglas Gregor [Thu, 2 Apr 2009 23:43:50 +0000 (23:43 +0000)]
Rename GeneratePCH action to GeneratePTH

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

15 years agoUpdate wording.
Mike Stump [Thu, 2 Apr 2009 23:42:13 +0000 (23:42 +0000)]
Update wording.

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

15 years agoResynchronize Decl/VarDecl serialization code with the structures
Douglas Gregor [Thu, 2 Apr 2009 23:40:00 +0000 (23:40 +0000)]
Resynchronize Decl/VarDecl serialization code with the structures

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

15 years agoSentence-type bug type and category.
Ted Kremenek [Thu, 2 Apr 2009 22:50:16 +0000 (22:50 +0000)]
Sentence-type bug type and category.

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

15 years agoAdd some whitespace to test my commit privileges.
Ed Schouten [Thu, 2 Apr 2009 19:13:12 +0000 (19:13 +0000)]
Add some whitespace to test my commit privileges.

Approved by: ddunbar

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

15 years agoAdd a new command-line option "-fixit-at=file:line:column" that only
Douglas Gregor [Thu, 2 Apr 2009 19:05:20 +0000 (19:05 +0000)]
Add a new command-line option "-fixit-at=file:line:column" that only
applies fix-its to error messages that occur at that specific location
in the program.

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

15 years agoFix up lookup rules for properties declared in
Fariborz Jahanian [Thu, 2 Apr 2009 18:44:20 +0000 (18:44 +0000)]
Fix up lookup rules for properties declared in
objc's continuation class.

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

15 years agoFix http://llvm.org/bugs/show_bug.cgi?id=3907.
Steve Naroff [Thu, 2 Apr 2009 18:37:59 +0000 (18:37 +0000)]
Fix http://llvm.org/bugs/show_bug.cgi?id=3907.

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

15 years agoDriver: Tweak search paths for FreeBSD.
Daniel Dunbar [Thu, 2 Apr 2009 18:30:04 +0000 (18:30 +0000)]
Driver: Tweak search paths for FreeBSD.
 - Patch by Pawel Worach!

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

15 years agoFix grammar.
Ted Kremenek [Thu, 2 Apr 2009 18:20:13 +0000 (18:20 +0000)]
Fix grammar.

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

15 years agoRemove -ftrapu.
Mike Stump [Thu, 2 Apr 2009 18:15:54 +0000 (18:15 +0000)]
Remove -ftrapu.

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

15 years agoDon't use static globals for params as it confuses the optimzer that their values...
Sanjiv Gupta [Thu, 2 Apr 2009 17:51:27 +0000 (17:51 +0000)]
Don't use static globals for params as it confuses the optimzer that their values are never being used in the function.

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

15 years agoAdd a few more analyzer test cases.
Ted Kremenek [Thu, 2 Apr 2009 17:25:00 +0000 (17:25 +0000)]
Add a few more analyzer test cases.

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

15 years agoMove the fix-it tests into their own subdirectory
Douglas Gregor [Thu, 2 Apr 2009 17:19:13 +0000 (17:19 +0000)]
Move the fix-it tests into their own subdirectory

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

15 years agoProvide FIX-IT notes to describe what fix-it is doing behind the
Douglas Gregor [Thu, 2 Apr 2009 17:13:00 +0000 (17:13 +0000)]
Provide FIX-IT notes to describe what fix-it is doing behind the
scenes, using the underlying diagnostic client to format the
messages.

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

15 years agoSome cleanups to the fix-it rewriter. Thanks, Chris
Douglas Gregor [Thu, 2 Apr 2009 16:34:42 +0000 (16:34 +0000)]
Some cleanups to the fix-it rewriter. Thanks, Chris

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

15 years agoImplement mangling of declarations inside functions.
Anders Carlsson [Thu, 2 Apr 2009 16:24:45 +0000 (16:24 +0000)]
Implement mangling of declarations inside functions.

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

15 years agoMangle VarDecls correctly.
Anders Carlsson [Thu, 2 Apr 2009 16:05:20 +0000 (16:05 +0000)]
Mangle VarDecls correctly.

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

15 years agoMove the function decl mangling code out into its own function. No functionality...
Anders Carlsson [Thu, 2 Apr 2009 15:51:53 +0000 (15:51 +0000)]
Move the function decl mangling code out into its own function. No functionality change.

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

15 years agoWhen calling a function without a prototype for which we have a
Douglas Gregor [Thu, 2 Apr 2009 15:37:10 +0000 (15:37 +0000)]
When calling a function without a prototype for which we have a
definition, warn if there are too many/too few function call
arguments.

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

15 years agoWire --version to normal -v version text.
Daniel Dunbar [Thu, 2 Apr 2009 15:05:41 +0000 (15:05 +0000)]
Wire --version to normal -v version text.

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

15 years agoUpdate checker build.
Ted Kremenek [Thu, 2 Apr 2009 06:33:06 +0000 (06:33 +0000)]
Update checker build.

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