History log of /llvm-project/clang/lib/Frontend/InitPreprocessor.cpp (Results 401 – 425 of 493)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3, llvmorg-2.8.0-rc2, llvmorg-2.8.0-rc1
# 2ba828f3 05-Sep-2010 Steven Watanabe <steven@providere-consulting.com>

Tell the VS headers that char16_t and char32_t are keywords, so yvals.h doesn't try to define them as typedefs.

llvm-svn: 113126


Revision tags: llvmorg-2.8.0-rc0
# a5a5f470 03-Sep-2010 Francois Pichet <pichet2000@gmail.com>

First test commit by Francois Pichet. _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES is not a predefined macro, remove it.

llvm-svn: 112953


# 2b1bbecb 30-Aug-2010 Douglas Gregor <dgregor@apple.com>

Predeclare class type_info in Microsoft mode, from Francois Pichet!

llvm-svn: 112478


# 1d9c76d6 21-Aug-2010 Michael J. Spencer <bigcheesegs@gmail.com>

Fix typo in comment.

llvm-svn: 111729


# 865afc96 03-Aug-2010 Eli Friedman <eli.friedman@gmail.com>

PR7795: Fix the definition of __WCHAR_MAX__ with -fshort-wchar.

llvm-svn: 110126


# 278008f5 03-Aug-2010 Chris Lattner <sabre@nondot.org>

fix some undefined behavior, PR7779.

llvm-svn: 110116


# 3f4bea06 26-Jul-2010 Douglas Gregor <dgregor@apple.com>

Introduce basic support for loading a precompiled preamble while
reparsing an ASTUnit. When saving a preamble, create a buffer larger
than the actual file we're working with but fill everything from

Introduce basic support for loading a precompiled preamble while
reparsing an ASTUnit. When saving a preamble, create a buffer larger
than the actual file we're working with but fill everything from the
end of the preamble to the end of the file with spaces (so the lexer
will quickly skip them). When we load the file, create a buffer of the
same size, filling it with the file and then spaces. Then, instruct
the lexer to start lexing after the preamble, therefore continuing the
parse from the spot where the preamble left off.

It's now possible to perform a simple preamble build + parse (+
reparse) with ASTUnit. However, one has to disable a bunch of checking
in the PCH reader to do so. That part isn't committed; it will likely
be handled with some other kind of flag (e.g., -fno-validate-pch).

As part of this, fix some issues with null termination of the memory
buffers created for the preamble; we were trying to explicitly
NULL-terminate them, even though they were also getting implicitly
NULL terminated, leading to excess warnings about NULL characters in
source files.

llvm-svn: 109445

show more ...


# be2d8c60 23-Jul-2010 Douglas Gregor <dgregor@apple.com>

Basic plumbing for generating a precompiled preamble for an
ASTUnit/CXTranslationUnit. We can't actually use this preamble yet,
however.

llvm-svn: 109202


# 120a1e9d 30-Jun-2010 Daniel Dunbar <daniel@zuster.org>

Headers: Define __INT64_TYPE__ in terms of getInt64Type(), which isn't always
'long'. The practical upshot is so that the uint64_t we define in our stdint.h
ends up being compatible with that defined

Headers: Define __INT64_TYPE__ in terms of getInt64Type(), which isn't always
'long'. The practical upshot is so that the uint64_t we define in our stdint.h
ends up being compatible with that defined by gcc (at least on Darwin), which
otherwise could lead to type incompatibilities with other system headers.

llvm-svn: 107255

show more ...


# e60d304d 28-Jun-2010 Ted Kremenek <kremenek@apple.com>

Remove state assertion.

llvm-svn: 107064


# ea78375e 28-Jun-2010 Ted Kremenek <kremenek@apple.com>

Don't crash in InitializePreprocessor() when there is no valid PTHManager. Fixes <rdar://problem/8098441>.

llvm-svn: 107061


# ca10da88 24-Jun-2010 Eric Christopher <echristo@apple.com>

Remove HAS_TLS define.

llvm-svn: 106786


# 03256c32 24-Jun-2010 Eric Christopher <echristo@apple.com>

More clang support for darwin tls. Add a __has_feature macro and
target specific preprocessor define as well.

llvm-svn: 106715


# 04f87201 28-May-2010 Dan Gohman <gohman@apple.com>

Add several more predefines from modern versions of GCC.

llvm-svn: 104906


# 34ddec63 26-May-2010 Ted Kremenek <kremenek@apple.com>

Predefine the '__clang_analyzer__' macro when using '-analyze'.

llvm-svn: 104742


# 6602c25c 30-Apr-2010 Douglas Gregor <dgregor@apple.com>

Add Clang version inspection macros. Fixes PR6681.

llvm-svn: 102686


Revision tags: llvmorg-2.7.0
# 678eaa90 26-Apr-2010 Chris Lattner <sabre@nondot.org>

fix PR6936: don't generate line marker directives when preprocessing
.S files. "# 123" is passed through as-is, not treated as a line
marker in this mode. No testcase, because it would be nasty and

fix PR6936: don't generate line marker directives when preprocessing
.S files. "# 123" is passed through as-is, not treated as a line
marker in this mode. No testcase, because it would be nasty and isn't
worth it.

llvm-svn: 102391

show more ...


# 3ecc6655 21-Apr-2010 Douglas Gregor <dgregor@apple.com>

Sink the _GNU_SOURCE definition down into the target configuration,
and only define it where we know we need it---Linux and Cygwin. Thanks
to Chris for the prodding.

llvm-svn: 101989


# d2b896ab 16-Apr-2010 Douglas Gregor <dgregor@apple.com>

Only predefine the macro _GNU_SOURCE in C++ mode when we're on a
platform that typically uses glibc. Fixes a Boost.Thread compilation
failure.

llvm-svn: 101450


# 89a56c56 27-Feb-2010 Douglas Gregor <dgregor@apple.com>

When given unsaved files in clang_createTranslationUnitFromSourceFile,
copy the source buffers provided rather than referencing them
directly, so that the caller can free those buffers immediately af

When given unsaved files in clang_createTranslationUnitFromSourceFile,
copy the source buffers provided rather than referencing them
directly, so that the caller can free those buffers immediately after
calling clang_createTranslationUnitFromSourceFile(). Otherwise, we
risk hitting those buffers later (when building source ranges, forming
diagnostics, etc.).

llvm-svn: 97296

show more ...


# 3241d400 10-Feb-2010 Daniel Dunbar <daniel@zuster.org>

Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixes
calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling,
for Darwin ARM.

llvm-svn: 95787


# aa98ed9a 23-Jan-2010 Douglas Gregor <dgregor@apple.com>

Extend clang_createTranslationUnitFromSourceFile() to support creating
translation units that include unsaved files.

llvm-svn: 94258


# 26b29a08 20-Jan-2010 Chandler Carruth <chandlerc@gmail.com>

Move the MacroBuilder utilitiy to its own header. Update references.

Comments and/or improvements to the documentation are welcome.

llvm-svn: 93982


# 41576361 20-Jan-2010 Daniel Dunbar <daniel@zuster.org>

Fix an invalid Twine use spotty by abbeyj, it isn't safe to use Twine
temporaries (this is one reason I'm nervous about propagating their use beyond
particularly performance critical places).

llvm-s

Fix an invalid Twine use spotty by abbeyj, it isn't safe to use Twine
temporaries (this is one reason I'm nervous about propagating their use beyond
particularly performance critical places).

llvm-svn: 93981

show more ...


# 3f7b8b27 13-Jan-2010 Fariborz Jahanian <fjahanian@apple.com>

Predefine __weak attribute when doing objective-c
rewriting for any target. (refixes radar 7530235).

llvm-svn: 93331


1...<<11121314151617181920