summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
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/include/clang-c
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/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 89612b9c93a..5fb1b2c5c04 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -2305,7 +2305,11 @@ enum CXCursorKind {
*/
CXCursor_OMPTargetUpdateDirective = 265,
- CXCursor_LastStmt = CXCursor_OMPTargetUpdateDirective,
+ /** \brief A MS-specific late parsed compound statement.
+ */
+ CXCursor_MSLateParsedCompoundStmt = 266,
+
+ CXCursor_LastStmt = CXCursor_MSLateParsedCompoundStmt,
/**
* \brief Cursor that represents the translation unit itself.
OpenPOWER on IntegriCloud