History log of /llvm-project/clang/lib/Frontend/InitPreprocessor.cpp (Results 326 – 350 of 493)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 2afb63c0 28-Aug-2013 Eli Friedman <eli.friedman@gmail.com>

Handle -D arguments ending in a backslash.

We translate these into #define directives; to preserve gcc-compatible
semantics (where the expanded macro includes the backslash), we add
an extra "\\\n"

Handle -D arguments ending in a backslash.

We translate these into #define directives; to preserve gcc-compatible
semantics (where the expanded macro includes the backslash), we add
an extra "\\\n" to the end of the synthesized "#define".

<rdar://problem/14810220>

llvm-svn: 189511

show more ...


Revision tags: llvmorg-3.3.1-rc1, llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2, llvmorg-3.3.0-rc1
# 0a715429 07-May-2013 Richard Smith <richard-llvm@metafoo.co.uk>

C++1y: Update __cplusplus to temporary value 201305L to allow detection of provisional C++1y support.
Add __has_feature and __has_extension checks for C++1y features (based on the provisional names f

C++1y: Update __cplusplus to temporary value 201305L to allow detection of provisional C++1y support.
Add __has_feature and __has_extension checks for C++1y features (based on the provisional names from
the C++ features study group), and update documentation to match.

llvm-svn: 181342

show more ...


# c3c725aa 28-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com>

Define __SIZE_MAX__ preprocessor macro.

llvm-svn: 178226


# 48b72d81 05-Feb-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com>

[frontend] Don't put a PCH/PTH filename into the set of includes in the preprocessor options;
since only one of them is allowed in command-line, process them separately.

Otherwise, if more than one

[frontend] Don't put a PCH/PTH filename into the set of includes in the preprocessor options;
since only one of them is allowed in command-line, process them separately.

Otherwise, if more than one is specified in the command-line, one is processed normally
and the others are going to be treated and included as header files.

Related to radar://13140508

llvm-svn: 174385

show more ...


# 15171289 15-Jan-2013 Douglas Gregor <dgregor@apple.com>

Add -fopenmp -cc1 option and wire it up to define _OPENMP, from Alexey Bataev!

llvm-svn: 172509


# 2bf7fdb7 02-Jan-2013 Richard Smith <richard-llvm@metafoo.co.uk>

s/CPlusPlus0x/CPlusPlus11/g

llvm-svn: 171367


Revision tags: llvmorg-3.2.0, llvmorg-3.2.0-rc3
# 3a02247d 04-Dec-2012 Chandler Carruth <chandlerc@gmail.com>

Sort all of Clang's files under 'lib', and fix up the broken headers
uncovered.

This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/util

Sort all of Clang's files under 'lib', and fix up the broken headers
uncovered.

This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/utils/sort_includes.py
script over the files.

I also manually added quite a few missing headers that were uncovered by
shuffling the order or moving headers up to be main-module-headers.

llvm-svn: 169237

show more ...


Revision tags: llvmorg-3.2.0-rc2
# e6a56db2 29-Nov-2012 Richard Smith <richard-llvm@metafoo.co.uk>

Reject uses of __int128 on platforms that don't support it. Also move the ugly
'getPointerWidth(0) >= 64' test to be a method on TargetInfo, ready to be
properly cleaned up.

llvm-svn: 168856


Revision tags: llvmorg-3.2.0-rc1
# c6d2fdbb 10-Nov-2012 Eli Friedman <eli.friedman@gmail.com>

Make __LDBL_MAX__ etc. have the correct type on targets where long double/double/etc. have the same format. PR14285.

Based on patch by Jeroen Dobbelaere.

llvm-svn: 167649


# e81699d9 24-Oct-2012 Douglas Gregor <dgregor@apple.com>

Move PreprocessorOptions into the Lex library, and make it intrusively
reference-counted.

llvm-svn: 166587


# c2d984c8 22-Oct-2012 Douglas Gregor <dgregor@apple.com>

Handle implicitly-included PCH files the same way as
implicitly-included PTH files during initialization, delaying the
mapping down to the "original source file" until after later in the
initializati

Handle implicitly-included PCH files the same way as
implicitly-included PTH files during initialization, delaying the
mapping down to the "original source file" until after later in the
initialization process.

llvm-svn: 166452

show more ...


# 460fe6ba 17-Oct-2012 Richard Smith <richard-llvm@metafoo.co.uk>

Add -std=c++1y argument, for *highly* experimental C++14 support.

llvm-svn: 166139


# bdd74bfb 08-Oct-2012 Benjamin Kramer <benny.kra@googlemail.com>

Don't emit double parentheses in __clang_version__.

PR14040.

llvm-svn: 165415


# 73bf7f5b 05-Sep-2012 Abramo Bagnara <abramo.bagnara@gmail.com>

Allow disabling of wchar_t type.

llvm-svn: 163221


# fb5d242d 25-Aug-2012 Francois Pichet <pichet2000@gmail.com>

_HAS_CHAR16_T_LANGUAGE_SUPPORT is not predefined MSVC macro.

llvm-svn: 162641


# 3deb1ad4 21-Aug-2012 John McCall <rjmccall@apple.com>

Screw around with ObjCRuntime some more, changing the
diagnostics for bad deployment targets and adding a few
more predicates. Includes a patch by Jonathan Schleifer
to enable ARC for ObjFW.

llvm-s

Screw around with ObjCRuntime some more, changing the
diagnostics for bad deployment targets and adding a few
more predicates. Includes a patch by Jonathan Schleifer
to enable ARC for ObjFW.

llvm-svn: 162252

show more ...


# 8d48c8c6 10-Aug-2012 Dylan Noblesmith <nobled@dreamwidth.org>

Frontend: define _LP64 in a target-independent way

Instead of adding it to each individual subclass in
Targets.cpp, simply check the appropriate target
values.

Where before it was only on x86_64 an

Frontend: define _LP64 in a target-independent way

Instead of adding it to each individual subclass in
Targets.cpp, simply check the appropriate target
values.

Where before it was only on x86_64 and ppc64, it's now
also defined on mips64 and nvptx64.

Also add a bunch of negative tests to ensure it is *not*
defined on any other architectures while we're here.

llvm-svn: 161685

show more ...


# c0cebedd 08-Aug-2012 Dylan Noblesmith <nobled@dreamwidth.org>

Frontend: further document __BYTE_ORDER__

llvm-svn: 161494


# 673728fe 27-Jul-2012 Dylan Noblesmith <nobled@dreamwidth.org>

Preprocessor: add __BYTE_ORDER__ predefined macro

The __BYTE_ORDER__ predefined macro was added in GCC 4.6:
http://gcc.gnu.org/onlinedocs/gcc-4.6.0/cpp/Common-Predefined-Macros.html

It's used like

Preprocessor: add __BYTE_ORDER__ predefined macro

The __BYTE_ORDER__ predefined macro was added in GCC 4.6:
http://gcc.gnu.org/onlinedocs/gcc-4.6.0/cpp/Common-Predefined-Macros.html

It's used like the following:

#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
...
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
...
#else
#error insane architecture like the pdp-11
#endif

There's a similar macro, __FLOAT_WORD_ORDER__, but it looks like it
mainly exist to accommodate fairly obscure architectures and ARM's
old FPA instructions, so it doesn't seem nearly as useful.

The tests are updated to check for the correct(at least, based on
clang's current output) value of the macro on each target. So now the
suite will catch bugs like the one fixed in r157626.

llvm-svn: 160879

show more ...


# 6a039161 19-Jul-2012 Bob Wilson <bob.wilson@apple.com>

Define __FINITE_MATH_ONLY__ based on -ffast-math and -ffinite-math-only.

This macro was being unconditionally set to zero, preceded by a FIXME comment.
This fixes <rdar://problem/11845441>. Patch b

Define __FINITE_MATH_ONLY__ based on -ffast-math and -ffinite-math-only.

This macro was being unconditionally set to zero, preceded by a FIXME comment.
This fixes <rdar://problem/11845441>. Patch by Michael Gottesman!

llvm-svn: 160491

show more ...


# 5fb5df9c 20-Jun-2012 John McCall <rjmccall@apple.com>

Restructure how the driver communicates information about the
target Objective-C runtime down to the frontend: break this
down into a single target runtime kind and version, and compute
all the rele

Restructure how the driver communicates information about the
target Objective-C runtime down to the frontend: break this
down into a single target runtime kind and version, and compute
all the relevant information from that. This makes it
relatively painless to add support for new runtimes to the
compiler. Make the new -cc1 flag, -fobjc-runtime=blah-x.y.z,
available at the driver level as a better and more general
alternative to -fgnu-runtime and -fnext-runtime. This new
concept of an Objective-C runtime also encompasses what we
were previously separating out as the "Objective-C ABI", so
fragile vs. non-fragile runtimes are now really modelled as
different kinds of runtime, paving the way for better overall
differentiation.

As a sort of special case, continue to accept the -cc1 flag
-fobjc-runtime-has-weak, as a sop to PLCompatibilityWeak.

I won't go so far as to say "no functionality change", even
ignoring the new driver flag, but subtle changes in driver
semantics are almost certainly not intended.

llvm-svn: 158793

show more ...


# 9dcc0325 19-Jun-2012 Ted Kremenek <kremenek@apple.com>

Sink definition of IBOutlet, IBOutletCollection, and IBAction into
the compiler predefines buffer. These are essentially part of
the Objective-C language.

llvm-svn: 158690


# 5d3fb22b 16-Jun-2012 Meador Inge <meadori@codesourcery.com>

Explicitly build __builtin_va_list.

The target specific __builtin_va_list types are now explicitly built instead
of injecting strings into the preprocessor input.

llvm-svn: 158592


# b9199ee5 13-Jun-2012 James Dennett <jdennett@google.com>

More doxygen/documentation cleanups.

This reduces the number of warnings generated by Doxygen by about 100
(roughly 10%). Issues addressed:
(1) Primarily, backslash-escaped "@foo" and "#bah" in Dox

More doxygen/documentation cleanups.

This reduces the number of warnings generated by Doxygen by about 100
(roughly 10%). Issues addressed:
(1) Primarily, backslash-escaped "@foo" and "#bah" in Doxygen comments
when they're not supposed to be Doxygen commands or links, and
similarly for "<baz>" when it's not intended as as HTML tag;
(2) Changed some \t commands (which don't exist) to \c ("to refer to a
word of code", as the Doxygen manual says);
(3) \precondition becomes \pre;
(4) When touching comments, deleted a couple of spurious spaces in them;
(5) Changed some \n and \r to \\n and \\r;
(6) Fixed one tiny typo: #pragms -> #pragma.

This patch touches documentation/comments only.

llvm-svn: 158422

show more ...


Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3
# 222f2785 04-May-2012 James Molloy <james.molloy@arm.com>

Add a predefine __WINT_UNSIGNED__, similar to __WCHAR_UNSIGNED__, and test them both for ARM and X86.

Use this to fully fix Sema/format-strings.c for non-x86 platforms.

Reviewed by Chandler on IRC.

Add a predefine __WINT_UNSIGNED__, similar to __WCHAR_UNSIGNED__, and test them both for ARM and X86.

Use this to fully fix Sema/format-strings.c for non-x86 platforms.

Reviewed by Chandler on IRC.

llvm-svn: 156169

show more ...


1...<<11121314151617181920