]> granicus.if.org Git - clang/commit
Change the Lexer ctor used to lex _Pragma directives into a static factory
authorChris Lattner <sabre@nondot.org>
Sat, 17 Jan 2009 08:27:52 +0000 (08:27 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 17 Jan 2009 08:27:52 +0000 (08:27 +0000)
commit42e00d19b0dac64732eb5449d52a076282fcbf77
treedd0a813f9434a27631eceae143fe7529ed52b018
parentf056d92e182cbe4f62c8d14102544dc38066dabc
Change the Lexer ctor used to lex _Pragma directives into a static factory
method.  This lets us clean up the interface and make it more obvious that
this method is *really really* _Pragma specific.

Note that _Pragma handling uglifies the Lexer in the critical path.  It would
be very interesting to consider making _Pragma remapping be a new special
lexer class of its own.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62425 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Lexer.h
lib/Lex/Lexer.cpp
lib/Lex/Pragma.cpp