[Lldb-commits] [PATCH] D11102: Set the compiler's language options using the language of the current frame's CU, and fix ObjC evaluation.

Dawn Perchik dawn+llvm at burble.org
Mon Jul 20 22:56:27 PDT 2015


dawn added a comment.

See comments added in patch.


================
Comment at: source/Commands/CommandObjectExpression.cpp:311
@@ +310,3 @@
+            }
+        }
+
----------------
Ignore this part of the patch - the language will instead be controlled by an option as discussed in http://reviews.llvm.org/D11119.  It is useful for testing purposes however, to show where test cases are using expressions outside the scope of the CU's language.

================
Comment at: source/Expression/ClangExpressionParser.cpp:219
@@ -217,1 +218,3 @@
+        // set it here as well.
+        m_compiler->getLangOpts().CPlusPlus = true;
         break;
----------------
Do you want to be able to parse ObjC++ when the language is ObjC?  If so, you'll want this.


Repository:
  rL LLVM

http://reviews.llvm.org/D11102







More information about the lldb-commits mailing list