Skip to content

Commit 1fa3090

Browse files
committed
Resolve merge conflicts
Signed-off-by: yronglin <[email protected]>
1 parent 1ce4def commit 1fa3090

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

clang/include/clang/Lex/Preprocessor.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,9 +1789,6 @@ class Preprocessor {
17891789
void HandleCXXImportDirective(Token Import);
17901790
void HandleCXXModuleDirective(Token Module);
17911791

1792-
void setFirstPPToken(const Token &Tok) { FirstPPToken = Tok; }
1793-
Token getFirstPPToken() const { return FirstPPToken; }
1794-
17951792
/// Callback invoked when the lexer sees one of export, import or module token
17961793
/// at the start of a line.
17971794
///

clang/lib/Lex/Lexer.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3752,9 +3752,6 @@ bool Lexer::Lex(Token &Result) {
37523752
(void) isRawLex;
37533753
bool returnedToken = LexTokenInternal(Result, atPhysicalStartOfLine);
37543754

3755-
if (returnedToken && Result.isFirstPPToken() && PP)
3756-
PP->setFirstPPToken(Result);
3757-
37583755
// (After the LexTokenInternal call, the lexer might be destroyed.)
37593756
assert((returnedToken || !isRawLex) && "Raw lex must succeed");
37603757

clang/test/CXX/module/dcl.dcl/dcl.module/dcl.module.import/p1.cppm

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,6 @@ import x [[foo]]; // expected-warning {{unknown attribute 'foo' ignored}}
4343
import x [[noreturn]]; // expected-error {{'noreturn' attribute cannot be applied to a module import}}
4444
import x [[blarg::noreturn]]; // expected-warning-re {{unknown attribute 'blarg::noreturn' ignored{{.*}}}}
4545

46-
import x.y;
47-
import x.; // expected-error {{expected a module name after 'import'}}
48-
import .x; // expected-error {{expected a module name after 'import'}}
49-
50-
import blarg; // expected-error {{module 'blarg' not found}}
51-
52-
int use_4 = c; // ok
53-
54-
//--- test.implementation.cpp
55-
module a.b;
56-
57-
import x;
58-
59-
import x [[]];
60-
import x [[foo]]; // expected-warning {{unknown attribute 'foo' ignored}}
61-
import x [[noreturn]]; // expected-error {{'noreturn' attribute cannot be applied to a module import}}
62-
import x [[blarg::noreturn]]; // expected-warning-re {{unknown attribute 'blarg::noreturn' ignored{{.*}}}}
63-
6446
import x.y;
6547
import x.; // expected-error {{expected identifier after '.' in module name}}
6648
import .x; // expected-error {{unknown type name 'import'}} \
@@ -78,7 +60,7 @@ import x;
7860
import x [[]];
7961
import x [[foo]]; // expected-warning {{unknown attribute 'foo' ignored}}
8062
import x [[noreturn]]; // expected-error {{'noreturn' attribute cannot be applied to a module import}}
81-
import x [[blarg::noreturn]]; // expected-warning {{unknown attribute 'noreturn' ignored}}
63+
import x [[blarg::noreturn]]; // expected-warning-re {{unknown attribute 'blarg::noreturn' ignored{{.*}}}}
8264

8365
import x.y;
8466
import x.; // expected-error {{expected identifier after '.' in module name}}

0 commit comments

Comments
 (0)