summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2016-06-15 11:19:39 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2016-06-15 11:19:39 +0000
commit86e786bd17603b3839a8654ddae7710a63f8008d (patch)
tree59fcc841d26f22c91dc71a747bc069b81db258d2 /clang/lib/AST/StmtPrinter.cpp
parentd58dc298ef9c124bf875a7f7ee56ec9048cc6d74 (diff)
downloadbcm5719-llvm-86e786bd17603b3839a8654ddae7710a63f8008d.tar.gz
bcm5719-llvm-86e786bd17603b3839a8654ddae7710a63f8008d.zip
[MSVC] Late parsing of in-class defined member functions in template
classes. MSVC actively uses unqualified lookup in dependent bases, lookup at the instantiation point (non-dependent names may be resolved on things declared later) etc. and all this stuff is the main cause of incompatibility between clang and MSVC. Clang tries to emulate MSVC behavior but it may fail in many cases. clang could store lexed tokens for member functions definitions within ClassTemplateDecl for later parsing during template instantiation. It will allow resolving many possible issues with lookup in dependent base classes and removing many already existing MSVC-specific hacks/workarounds from the clang code. llvm-svn: 272774
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index 2e15c81cccd..07aef87f5fb 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -2352,6 +2352,10 @@ void StmtPrinter::VisitCoreturnStmt(CoreturnStmt *S) {
OS << ";";
}
+void StmtPrinter::VisitMSLateParsedCompoundStmt(MSLateParsedCompoundStmt *S) {
+ OS << S->getStringRepresentation();
+}
+
void StmtPrinter::VisitCoawaitExpr(CoawaitExpr *S) {
OS << "co_await ";
PrintExpr(S->getOperand());
OpenPOWER on IntegriCloud