mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 21:56:04 +00:00

is not used since it consumes all preprocessor directives until it returns a real token. Using the specific Lexer (i.e. CurLexer->Lex) makes it possible to stop skipping after an #include or #pragma hdrstop. Previously the skipping code was only handling CurLexer, now all will be handled correctly. Fixes: llvm.org/PR41585 Differential Revision: https://reviews.llvm.org/D61217 llvm-svn: 359506
13 lines
460 B
C++
13 lines
460 B
C++
// expected-no-diagnostics
|
|
// Create PCH with #pragma hdrstop processing.
|
|
// RUN: %clang_cc1 -verify -I %S -emit-pch -pch-through-hdrstop-create \
|
|
// RUN: -fms-extensions -o %t.pch -x c++-header %s
|
|
|
|
// Create the PCH object
|
|
// RUN: %clang_cc1 -verify -I %S -emit-obj -include-pch %t.pch \
|
|
// RUN: -pch-through-hdrstop-create -fms-extensions -o %t.obj -x c++ %s
|
|
|
|
#pragma once
|
|
#include "Inputs/pch-through-macro.h"
|
|
void f(InOut(a) char *b, unsigned long a);
|