History log of /llvm-project/clang/lib/Frontend/CompilerInvocation.cpp (Results 1751 – 1775 of 1971)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# a860e6ae 14-Jun-2011 Douglas Gregor <dgregor@apple.com>

Introduce a -cc1-level option to turn off related result type
inference, to be used (only) by the Objective-C rewriter.

llvm-svn: 133025


# c9224d67 13-Jun-2011 Douglas Gregor <dgregor@apple.com>

Eliminate the -f[no]objc-infer-related-result-type flags; there's no
reason to allow the user to control these semantics through a flag.

llvm-svn: 132919


# 33823727 11-Jun-2011 Douglas Gregor <dgregor@apple.com>

Implement Objective-C Related Result Type semantics.

Related result types apply Cocoa conventions to the type of message
sends and property accesses to Objective-C methods that are known to
always r

Implement Objective-C Related Result Type semantics.

Related result types apply Cocoa conventions to the type of message
sends and property accesses to Objective-C methods that are known to
always return objects whose type is the same as the type of the
receiving class (or a subclass thereof), such as +alloc and
-init. This tightens up static type safety for Objective-C, so that we
now diagnose mistakes like this:

t.m:4:10: warning: incompatible pointer types initializing 'NSSet *'
with an
expression of type 'NSArray *' [-Wincompatible-pointer-types]
NSSet *array = [[NSArray alloc] init];
^ ~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:72:1:
note:
instance method 'init' is assumed to return an instance of its
receiver
type ('NSArray *')
- (id)init;
^

It also means that we get decent type inference when writing code in
Objective-C++0x:

auto array = [[NSMutableArray alloc] initWithObjects:@"one", @"two",nil];
// ^ now infers NSMutableArray* rather than id

llvm-svn: 132868

show more ...


# fb2af643 02-Jun-2011 Rafael Espindola <rafael.espindola@gmail.com>

Implement -fgnu89-inline. Fixes PR10041.

llvm-svn: 132460


# 643c922e 21-May-2011 Douglas Gregor <dgregor@apple.com>

Introduce the -fdiagnostics-format=xxx option to control how Clang
prints the file, line, and column of a diagnostic. We currently
support Clang's normal format, MSVC, and Vi formats.

Note that we n

Introduce the -fdiagnostics-format=xxx option to control how Clang
prints the file, line, and column of a diagnostic. We currently
support Clang's normal format, MSVC, and Vi formats.

Note that we no longer change the diagnostic format based on
-fms-extensions.

Patch by Andrew Fish!

llvm-svn: 131794

show more ...


# 85c011dd 05-May-2011 Nick Lewycky <nicholas@mxc.ca>

Preserve the full name of the file, so that '-c -o foo.pic.o' produces
foo.pic.gcno instead of foo.gcno.

llvm-svn: 130899


# e262299b 05-May-2011 Alexis Hunt <alercah@gmail.com>

Change cycle detection to be based off of a warning flag.

llvm-svn: 130898


# 480cb991 04-May-2011 Nick Lewycky <nicholas@mxc.ca>

Record where the GCOV data files should be placed.

llvm-svn: 130866


# 6118d664 04-May-2011 Alexis Hunt <alercah@gmail.com>

Implement a better version of delegating constructor cycle detection.

This is more efficient as it's all done at once at the end of the TU.
This could still get expensive, so a flag is provided to d

Implement a better version of delegating constructor cycle detection.

This is more efficient as it's all done at once at the end of the TU.
This could still get expensive, so a flag is provided to disable it. As
an added bonus, the diagnostics will now print out a cycle.

The PCH test is XFAILed because we currently can't deal with a note
emitted in the header and I, being tired, see no other way to verify the
serialization of delegating constructors. We should probably address
this problem /somehow/ but no good solution comes to mind.

llvm-svn: 130836

show more ...


# 24874a44 02-May-2011 Chad Rosier <mcrosier@apple.com>

When using -std= flag added check to make sure language and standard are compatable

llvm-svn: 130710


# e264187c 30-Apr-2011 Rafael Espindola <rafael.espindola@gmail.com>

Implement -fno-dwarf2-cfi-asm.

llvm-svn: 130616


# 3909e037 30-Apr-2011 Chad Rosier <mcrosier@apple.com>

Removed redundant case statements

llvm-svn: 130564


# 9a5f84fa 29-Apr-2011 Bob Wilson <bob.wilson@apple.com>

Add -Oz option and use it to set the inline threshold to 25.
Radar 9333566. Patch by Chad Rosier!

llvm-svn: 130554


# 30483fb1 23-Apr-2011 Chandler Carruth <chandlerc@gmail.com>

Move all of the logic for __DEPRECATED to the driver based on comments
from dgregor.

llvm-svn: 130066


# 61fbf628 23-Apr-2011 Chandler Carruth <chandlerc@gmail.com>

Fix Clang's __DEPRECATED define to be controled by -Wdeprecated. This
matches GCC behavior which libstdc++ uses to limit #warning-based
messages about deprecation.

The machinery involves threading t

Fix Clang's __DEPRECATED define to be controled by -Wdeprecated. This
matches GCC behavior which libstdc++ uses to limit #warning-based
messages about deprecation.

The machinery involves threading this through a new '-fdeprecated-macro'
flag for CC1. The flag defaults to "on", similarly to -Wdeprecated. We
turn the flag off in the driver when the warning is turned off (modulo
matching some GCC bugs). We record this as a language option, and key
the preprocessor on the option when introducing the define.

A separate flag rather than a '-D' flag allows us to properly represent
the difference between C and C++ builds (only C++ receives the define),
and it allows the specific behavior of following -Wdeprecated without
potentially impacting the set of user-provided macro flags.

llvm-svn: 130055

show more ...


# b009b149 23-Apr-2011 Chandler Carruth <chandlerc@gmail.com>

There were some frustrating problems with the implementation of
-Wwrite-strings. First and foremost, once the positive form of the flag
was passed, it could never be disabled by passing -Wno-write-st

There were some frustrating problems with the implementation of
-Wwrite-strings. First and foremost, once the positive form of the flag
was passed, it could never be disabled by passing -Wno-write-strings.
Also, the diagnostic engine couldn't in turn use -Wwrite-strings to
control diagnostics (as GCC does) because it was essentially hijacked to
drive the language semantics.

Fix this by giving CC1 a clean '-fconst-strings' flag to enable
const-qualified strings in C and ObjC compilations. Corresponding
'-fno-const-strings' is also added. Then the driver is taught to
introduce '-fconst-strings' in the CC1 command when '-Wwrite-strings'
dominates.

This entire flag is basically GCC-bug-compatibility driven, so we also
match GCC's bug where '-w' doesn't actually disable -Wwrite-strings. I'm
open to changing this though as it seems insane.

llvm-svn: 130051

show more ...


# 1c229c04 22-Apr-2011 Francois Pichet <pichet2000@gmail.com>

Add -fdelayed-template-parsing option. Using this option all templated function definitions are parsed at the end of the translation unit only if it is required by an actual instantiation. As such al

Add -fdelayed-template-parsing option. Using this option all templated function definitions are parsed at the end of the translation unit only if it is required by an actual instantiation. As such all the symbols of the TU are available during name lookup.

Using this flag is necessary for compatibility with Microsoft template code.
This also provides some parsing speed improvement.

llvm-svn: 130022

show more ...


# 207bce31 21-Apr-2011 Nick Lewycky <nicholas@mxc.ca>

Wire up the -ftest-coverage and -fprofile-arcs flags to .gcno file emission (at
compile time) and .gcda emission (at runtime). --coverage enables both.

This does not yet add the profile_rt library t

Wire up the -ftest-coverage and -fprofile-arcs flags to .gcno file emission (at
compile time) and .gcda emission (at runtime). --coverage enables both.

This does not yet add the profile_rt library to the link step if -fprofile-arcs
is enabled when linking.

llvm-svn: 129956

show more ...


# 46ce91a9 15-Apr-2011 Douglas Gregor <dgregor@apple.com>

Initial work to improve documentation for Clang's diagnostics, from Matthieu Monrocq

llvm-svn: 129614


# 57540c5b 15-Apr-2011 Chris Lattner <sabre@nondot.org>

fix a bunch of comment typos found by codespell. Patch by
Luis Felipe Strano Moraes!

llvm-svn: 129559


# a686b5f8 15-Apr-2011 Peter Collingbourne <peter@pcc.me.uk>

C1X: add a language standard

llvm-svn: 129553


# 39439739 09-Apr-2011 John McCall <rjmccall@apple.com>

Fix a bunch of major problems with __unknown_anytype and properly test
for them. The only major missing feature is references.

llvm-svn: 129234


# 5045cf1a 09-Apr-2011 Chris Lattner <sabre@nondot.org>

accept -x objc-cpp-output as an alias for -x objective-c-cpp-output,
per PR9577

llvm-svn: 129201


# 6b584864 07-Apr-2011 Daniel Dunbar <daniel@zuster.org>

Frontend: Sketch support for -diagnostic-log-file, which still doesn't do anything.

llvm-svn: 129086


Revision tags: llvmorg-2.9.0
# 67919b2a 28-Mar-2011 Daniel Dunbar <daniel@zuster.org>

Integrated-As: Support -Wa,-L when using the integrated assembler.

llvm-svn: 128433


1...<<717273747576777879