[C++] Always output a #line as first line of the pp output.

Change-Id: I60d25109ae8fe3628b1899078a21010263787c33
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Erik Verbruggen
2012-03-30 13:01:32 +02:00
parent 5001982e50
commit ff0a465403
15 changed files with 48 additions and 25 deletions

View File

@@ -1,3 +1,4 @@
# 1 "data/empty-macro.2.cpp"
# 6 "data/empty-macro.2.cpp"
class Test {
private:

View File

@@ -1,3 +1,4 @@
# 1 "data/empty-macro.cpp"
class Foo {

View File

@@ -1,3 +1,4 @@
# 1 "data/identifier-expansion.1.cpp"
#gen true
# 1 "data/identifier-expansion.1.cpp"
test test

View File

@@ -1,3 +1,4 @@
# 1 "data/identifier-expansion.2.cpp"
#gen true
# 1 "data/identifier-expansion.2.cpp"
test test

View File

@@ -1,3 +1,4 @@
# 1 "data/identifier-expansion.3.cpp"
# 8 "data/identifier-expansion.3.cpp"
enum op_code {
#gen true

View File

@@ -1,3 +1,4 @@
# 1 "data/identifier-expansion.4.cpp"

View File

@@ -1 +1,2 @@
# 1 "data/identifier-expansion.5.cpp"
# 9 "data/identifier-expansion.5.cpp"

View File

@@ -1,3 +1,4 @@
# 1 "data/macro-test.cpp"
# 7 "data/macro-test.cpp"
void thisFunctionIsEnabled();
# 21 "data/macro-test.cpp"

View File

@@ -1,3 +1,4 @@
# 1 "data/macro_expand.c"

View File

@@ -1,3 +1,4 @@
# 1 "data/recursive.1.cpp"
#gen true
# 1 "data/recursive.1.cpp"
b

View File

@@ -1,3 +1,4 @@
# 1 "data/reserved.1.cpp"
# 5 "data/reserved.1.cpp"
int f() {
foreach (QString &s, QStringList()) {