History log of /llvm-project/clang/lib/Frontend/InitPreprocessor.cpp (Results 376 – 400 of 493)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 8cb46bb5 19-Jul-2011 Alexis Hunt <alercah@gmail.com>

Implement a __WCHAR_UNSIGNED__ macro and use it to include WCHAR_MIN and
WCHAR_MAX in limits.h, thus solving the problem where the system header
thinks it knows better.

llvm-svn: 135455


# 24fc0dec 06-Jul-2011 John McCall <rjmccall@apple.com>

Change the driver's logic about Objective-C runtimes: abstract out a
structure to hold inferred information, then propagate each invididual
bit down to -cc1. Separate the bits of "supports weak" an

Change the driver's logic about Objective-C runtimes: abstract out a
structure to hold inferred information, then propagate each invididual
bit down to -cc1. Separate the bits of "supports weak" and "has a native
ARC runtime"; make the latter a CodeGenOption.

The tool chain is still driving this decision, because it's the place that
has the required deployment target information on Darwin, but at least it's
better-factored now.

llvm-svn: 134453

show more ...


# bf3eec68 05-Jul-2011 Fariborz Jahanian <fjahanian@apple.com>

Don't define __CONSTANT_CFSTRINGS__ with -fno-constant-cfstrings issue.
Patch by Jean-Daniel Dupas.

llvm-svn: 134414


# cff00d9c 24-Jun-2011 Argyrios Kyrtzidis <akyrtzi@gmail.com>

Rename objc_lifetime -> objc_ownership, and modify diagnostics to talk about 'ownership', not 'lifetime'.

rdar://9477613.

llvm-svn: 133779


# 10c1d268 20-Jun-2011 Douglas Gregor <dgregor@apple.com>

Define __cplusplus to 201103L when in (non-GNU) C++0x mode.

llvm-svn: 133437


# 5d36a8cc 16-Jun-2011 John McCall <rjmccall@apple.com>

Unconditionally #define the ARC ownership qualifiers, instead of #defining
them only on Darwin tool chains.

llvm-svn: 133112


# 31168b07 15-Jun-2011 John McCall <rjmccall@apple.com>

Automatic Reference Counting.

Language-design credit goes to a lot of people, but I particularly want
to single out Blaine Garst and Patrick Beard for their contributions.

Compiler implementation c

Automatic Reference Counting.

Language-design credit goes to a lot of people, but I particularly want
to single out Blaine Garst and Patrick Beard for their contributions.

Compiler implementation credit goes to Argyrios, Doug, Fariborz, and myself,
in no particular order.

llvm-svn: 133103

show more ...


# cd4cfb3e 10-Jun-2011 Nick Lewycky <nicholas@mxc.ca>

__OBJC__ is also a standard predefined macro.

llvm-svn: 132855


# a6820332 07-Jun-2011 Nick Lewycky <nicholas@mxc.ca>

The macros defined by the language standard are still available even when the
-undef flag is passed in. Also __ASSEMBLER__ with -x assembler-with-cpp. (Don't
ask.)

llvm-svn: 132708


# 16c9491f 09-May-2011 Francois Pichet <pichet2000@gmail.com>

Add a FIXME.

llvm-svn: 131108


# 61d818c0 07-May-2011 Francois Pichet <pichet2000@gmail.com>

Temporary preprocessor hack to get around the Microsoft __identifier(x) extension.
http://msdn.microsoft.com/en-us/library/hzc8ytsz(v=VS.100).aspx

Microsoft doc claims this is a C++/CLI feature but

Temporary preprocessor hack to get around the Microsoft __identifier(x) extension.
http://msdn.microsoft.com/en-us/library/hzc8ytsz(v=VS.100).aspx

Microsoft doc claims this is a C++/CLI feature but it is really always enabled.
This removes 2 error when parsing MFC code with clang.

llvm-svn: 131051

show more ...


# 84133e41 28-Apr-2011 Francois Pichet <pichet2000@gmail.com>

Upgrade Microsoft's __int8, __int16, __int32 and __int64 types from builtin defines to real types.

Otherwise statements like:
__int64 var = __int64(0);

would be expanded to:
long long var = lon

Upgrade Microsoft's __int8, __int16, __int32 and __int64 types from builtin defines to real types.

Otherwise statements like:
__int64 var = __int64(0);

would be expanded to:
long long var = long long(0);

and fail to compile.

llvm-svn: 130369

show more ...


# 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 ...


# 45477524 21-Apr-2011 Eli Friedman <eli.friedman@gmail.com>

PR9772: Fix the definition of WINT_MIN and WINT_MAX on Linux -ffreestanding.

llvm-svn: 129907


Revision tags: llvmorg-2.9.0
# 3b17a865 31-Mar-2011 Daniel Dunbar <daniel@zuster.org>

Change Clang's __VERSION__ to include the same basic info as in clang -v.
- Please never ever ever ever write a tool that sniffs this.

llvm-svn: 128599


Revision tags: llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2
# 5366ff18 19-Mar-2011 Daniel Dunbar <daniel@zuster.org>

Preprocessor: Don't define __STDC__ in -traditional-cpp mode.

llvm-svn: 127933


# 97d3a38c 08-Mar-2011 Argyrios Kyrtzidis <akyrtzi@gmail.com>

Add 'OverridenFilesKeepOriginalName' field in SourceManager which if true the SourceManager
should report the original file name for contents of files that were overriden by other files,
otherwise it

Add 'OverridenFilesKeepOriginalName' field in SourceManager which if true the SourceManager
should report the original file name for contents of files that were overriden by other files,
otherwise it should report the name of the new file. Default is true.

Also add similar field in PreprocessorOptions and pass similar parameter in ASTUnit::LoadFromCommandLine.

llvm-svn: 127289

show more ...


Revision tags: llvmorg-2.9.0-rc1
# d767a030 24-Feb-2011 Chris Lattner <sabre@nondot.org>

Reimplement DefineTypeSize in terms of APInt. This eliminates some
magic integer arithmetic and allows it to work with types larger
than 64 bits.

llvm-svn: 126365


# 36079898 23-Feb-2011 Nick Lewycky <nicholas@mxc.ca>

Preserve what the user passed to -include when emitting .d files. Fixes PR8974!

llvm-svn: 126334


# 740857fa 21-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com>

Replace all uses of PathV1::makeAbsolute with PathV2::fs::make_absolute.

llvm-svn: 122340


# 61d6a753 04-Dec-2010 Peter Collingbourne <peter@pcc.me.uk>

Implement -cl-fast-relaxed-math

llvm-svn: 120880


# 8aaf4995 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com>

Merge System into Support.

llvm-svn: 120297


# 5159f616 23-Nov-2010 Chris Lattner <sabre@nondot.org>

now the FileManager has a FileSystemOpts ivar, stop threading
FileSystemOpts through a ton of apis, simplifying a lot of code.
This also fixes a latent bug in ASTUnit where it would invoke
methods on

now the FileManager has a FileSystemOpts ivar, stop threading
FileSystemOpts through a ton of apis, simplifying a lot of code.
This also fixes a latent bug in ASTUnit where it would invoke
methods on FileManager without creating one in some code paths
in cindextext.

llvm-svn: 120010

show more ...


# 71731d6b 03-Nov-2010 Argyrios Kyrtzidis <akyrtzi@gmail.com>

Implement -working-directory.

When -working-directory is passed in command line, file paths are resolved relative to the specified directory.
This helps both when using libclang (where we can't requ

Implement -working-directory.

When -working-directory is passed in command line, file paths are resolved relative to the specified directory.
This helps both when using libclang (where we can't require the user to actually change the working directory)
and to help reproduce test cases when the reproduction work comes along.

--FileSystemOptions is introduced which controls how file system operations are performed (currently it just contains
the working directory value if set).
--FileSystemOptions are passed around to various interfaces that perform file operations.
--Opening & reading the content of files should be done only through FileManager. This is useful in general since
file operations will be abstracted in the future for the reproduction mechanism.

FileSystemOptions is independent of FileManager so that we can have multiple translation units sharing the same
FileManager but with different FileSystemOptions.

Addresses rdar://8583824.

llvm-svn: 118203

show more ...


1...<<11121314151617181920