History log of /llvm-project/clang/unittests/Lex/LexerTest.cpp (Results 51 – 75 of 82)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1d257e1d 04-Jun-2014 Alp Toker <alp@nuanti.com>

Remove the last remaining llvm/Config/config.h includes

This corrects long-standing misuses of LLVM's internal config.h.

In most cases the public llvm-config.h header was intended and we can now
re

Remove the last remaining llvm/Config/config.h includes

This corrects long-standing misuses of LLVM's internal config.h.

In most cases the public llvm-config.h header was intended and we can now
remove the old hacks thanks to LLVM r210144.

The config.h header is private, won't be installed and should no longer be
included by clang or other modules.

llvm-svn: 210145

show more ...


# b671e34c 21-May-2014 Alp Toker <alp@nuanti.com>

SourceManager: Use setMainFileID() consistently

Eliminate createMainFileID() / createMainFileIDForMemBuffer() utility
functions. These didn't add much convenience and conflated two distinct
operatio

SourceManager: Use setMainFileID() consistently

Eliminate createMainFileID() / createMainFileIDForMemBuffer() utility
functions. These didn't add much convenience and conflated two distinct
operations.

This change makes things easier to follow by providing a consistent interface
and getting rid of a bunch of cast-to-voids.

llvm-svn: 209266

show more ...


Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1
# 9663780e 02-May-2014 Alp Toker <alp@nuanti.com>

Reformat code following Preprocessor constructor updates

Landing this separately to make the previous commits easy to follow at home.

llvm-svn: 207826


# 1ae02f68 02-May-2014 Alp Toker <alp@nuanti.com>

Factor TargetInfo pointer/DelayInitialization bool pair out of Preprocessor ctor

The Preprocessor::Initialize() function already offers a clear interface to
achieve this, further reducing the confus

Factor TargetInfo pointer/DelayInitialization bool pair out of Preprocessor ctor

The Preprocessor::Initialize() function already offers a clear interface to
achieve this, further reducing the confusing number of states a newly
constructed preprocessor can have.

llvm-svn: 207825

show more ...


Revision tags: llvmorg-3.4.1, llvmorg-3.4.1-rc2
# 2d94bbb0 23-Apr-2014 John Thompson <John.Thompson.JTSoftware@gmail.com>

Quick fix for layering that broke shared library build.

llvm-svn: 207011


# 2255f2ce 23-Apr-2014 John Thompson <John.Thompson.JTSoftware@gmail.com>

Initial implementation of -modules-earch-all option, for searching for symbols in non-imported modules.

llvm-svn: 206977


Revision tags: llvmorg-3.4.1-rc1, llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1
# 1f76c4e8 24-Oct-2013 Manuel Klimek <klimek@google.com>

Use the same SourceManager for ModuleMaps and compilations.

This allows using virtual file mappings on the original SourceManager to
map in virtual module.map files. Without this patch, the ModuleMa

Use the same SourceManager for ModuleMaps and compilations.

This allows using virtual file mappings on the original SourceManager to
map in virtual module.map files. Without this patch, the ModuleMap
search will find a module.map file (as the FileEntry exists in the
FileManager), but will be unable to get the content from the
SourceManager (as ModuleMap previously created its own SourceManager).

Two problems needed to be fixed which this patch exposed:

1. Storing the inferred module map
When writing out a module, the ASTWriter stores the names of the files
in the main source manager; when loading the AST again, the ASTReader
errs out if such a file is found missing, unless it is overridden.
Previously CompilerInstance's compileModule method would store the
inferred module map to a temporary file; the problem with this approach
is that now that the module map is handled by the main source manager,
the ASTWriter stores the name of the temporary module map as source to
the compilation; later, when the module is loaded, the temporary file
has already been deleted, which leads to a compilation error. This patch
changes the inferred module map to instead inject a virtual file into
the source manager. This both saves some disk IO, and works with how the
ASTWriter/ASTReader handle overridden source files.

2. Changing test input in test/Modules/Inputs/*
Now that the module map file is handled by the main source manager, the
VerifyDiagnosticConsumer will not ignore diagnostics created while
parsing the module map file. The module test test/Modules/renamed.m uses
-I test/Modules/Inputs and triggers recursive loading of all module maps
in test/Modules/Inputs, some of which had conflicting names, thus
leading errors while parsing the module maps. Those diagnostics already
occur on trunk, but before this patch they would not break the test, as
they were ignored by the VerifyDiagnosticConsumer. This patch thus
changes the module maps that have been recently introduced which broke
the invariant of compatible modules maps in test/Modules/Inputs.

llvm-svn: 193314

show more ...


Revision tags: llvmorg-3.3.1-rc1, llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2
# 065d720c 16-May-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com>

[Lexer] Improve Lexer::getSourceText() when the given range deals with function macro arguments.

This is a modified version of a patch by Manuel Klimek.

llvm-svn: 182055


Revision tags: llvmorg-3.3.0-rc1
# fb912657 20-Mar-2013 Douglas Gregor <dgregor@apple.com>

<rdar://problem/12368093> Extend module maps with a 'conflict' declaration, and warn when a newly-imported module conflicts with an already-imported module.

llvm-svn: 177577


# 125df058 01-Feb-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com>

For ModuleLoader::makeModuleVisible() also pass the source location where the
module import occurred.

llvm-svn: 174191


# e73d2a9f 12-Jan-2013 NAKAMURA Takumi <geek4civic@gmail.com>

clang/unittests: Fixup corresponding to r172290.

llvm-svn: 172295


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

Really sort the #include lines in unittests/...

I forgot to re-sort after fixing main module headers.

llvm-svn: 169244


# 320d9666 04-Dec-2012 Chandler Carruth <chandlerc@gmail.com>

Sort the #include lines for unittests/...

I've tried to place sensible headers at the top as main-module headers.

llvm-svn: 169243


Revision tags: llvmorg-3.2.0-rc2
# 8c058937 30-Nov-2012 Douglas Gregor <dgregor@apple.com>

Fix unit tests for ModuleLoader change in r168961.

llvm-svn: 168962


# fe40a350 16-Nov-2012 NAKAMURA Takumi <geek4civic@gmail.com>

clang/unittests: Fixup corresponding to Doug's r168136.

llvm-svn: 168137


Revision tags: llvmorg-3.2.0-rc1
# 1452ff15 24-Oct-2012 Douglas Gregor <dgregor@apple.com>

Teach the preprocessor to hold onto the preprocessor options.

llvm-svn: 166599


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

Update unit tests for HeaderSearch change

llvm-svn: 166584


# edf8e387 23-Oct-2012 Douglas Gregor <dgregor@apple.com>

More unit-test fixes

llvm-svn: 166511


# d8cfd399 23-Oct-2012 Douglas Gregor <dgregor@apple.com>

Fixup unit tests for DiagnosticOptions change

llvm-svn: 166509


# 44d6361e 17-Oct-2012 Douglas Gregor <dgregor@apple.com>

Fix the handling of target options in our unit tests.

llvm-svn: 166079


Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1
# 461b7bb9 06-Mar-2012 Fariborz Jahanian <fjahanian@apple.com>

get rid of an unsued variable warning.

llvm-svn: 152146


# f7639e1b 06-Mar-2012 Ted Kremenek <kremenek@apple.com>

Add new code migrator support for migrating existing Objective-C code to use
the new Objective-C NSArray/NSDictionary/NSNumber literal syntax.

This introduces a new library, libEdit, which provides

Add new code migrator support for migrating existing Objective-C code to use
the new Objective-C NSArray/NSDictionary/NSNumber literal syntax.

This introduces a new library, libEdit, which provides a new way to support
migration of code that improves on the original ARC migrator. We now believe
that most of its functionality can be refactored into the existing libraries,
and thus this new library may shortly disappear.

llvm-svn: 152141

show more ...


# c95d8192 20-Feb-2012 Dylan Noblesmith <nobled@dreamwidth.org>

Basic: import IntrusiveRefCntPtr<> into clang namespace

The class name is long enough without the llvm:: added.
Also bring in RefCountedBase and RefCountedBaseVPTR.

llvm-svn: 150958


# 0d9e24b1 03-Feb-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com>

Change Lexer::makeFileCharRange() to have it accept a CharSourceRange
instead of a SourceRange, and handle the case where the range is
a char (not token) range.

llvm-svn: 149677


# 89929282 30-Jan-2012 Douglas Gregor <dgregor@apple.com>

Thread a TargetInfo through to the module map; we'll need it for
target-specific module requirements.

llvm-svn: 149224


1234