llvm-project/clang/lib/Parse
Michael Zuckerman 229158c491 [Microsoft][C++] Clang doesn't support a use of "this" pointer inside inline asm
Clang doesn’t support a use of “this” pointer inside inline asm.
When I tried to compile a class or a struct (see example) with an inline asm that contains "this" pointer.
Clang returns with an error.
This patch fixes that.

error: expected unqualified-id
For example:
'''
struct A {
    void f() {
          __asm mov eax, this
              // error: expected unqualified-id
                  }
};
'''
Differential Revision: http://reviews.llvm.org/D15115

llvm-svn: 255645
2015-12-15 14:04:18 +00:00
..
CMakeLists.txt [CMake] Reorder libdeps by alphabetical order. 2014-07-14 04:59:27 +00:00
Makefile
ParseAST.cpp Restore PrettyStackTrace state on crash. 2015-08-07 17:48:57 +00:00
ParseCXXInlineMethods.cpp Merge some similar diagnostics using %select. 2015-11-14 18:16:08 +00:00
ParseDecl.cpp Do not generate DW_TAG_imported_module for anonymous namespaces (even nested) for all the platforms except PS4. 2015-12-10 18:52:50 +00:00
ParseDeclCXX.cpp Do not generate DW_TAG_imported_module for anonymous namespaces (even nested) for all the platforms except PS4. 2015-12-10 18:52:50 +00:00
ParseExpr.cpp [coroutines] Creation of promise object, lookup of operator co_await, building 2015-10-27 06:02:45 +00:00
ParseExprCXX.cpp [coroutines] Support braced-init-list as operand of co_yield expression. 2015-11-20 22:47:10 +00:00
ParseInit.cpp Silence a -Wunused-variable warning; NFC. 2015-07-07 13:21:26 +00:00
ParseObjc.cpp Objective-C properties: merge attributes when redeclaring 'readonly' as 'readwrite' in an extension. 2015-12-10 23:02:09 +00:00
ParseOpenMP.cpp [OPENMP 4.5] Parsing/sema for 'hint' clause of 'critical' directive. 2015-12-15 08:19:24 +00:00
ParsePragma.cpp Put global classes into the appropriate namespace. 2015-10-28 13:54:16 +00:00
ParseStmt.cpp [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions, by Denis Zobnin. 2015-11-20 07:02:57 +00:00
ParseStmtAsm.cpp [Microsoft][C++] Clang doesn't support a use of "this" pointer inside inline asm 2015-12-15 14:04:18 +00:00
ParseTemplate.cpp Change the expression evaluation context from Unevaluated to ConstantEvaluated while substituting into non-type template argument defaults. 2015-11-19 19:20:17 +00:00
ParseTentative.cpp Add support for GCC's '__auto_type' extension, per the GCC manual: 2015-11-11 02:02:15 +00:00
Parser.cpp Merge some similar diagnostics using %select. 2015-11-14 18:16:08 +00:00
RAIIObjectsForParser.h Add a new error for unexpected semi-colon before closing delimiter. 2015-05-12 21:36:35 +00:00