[PATCH] D39903: [libclang] Allow pretty printing declarations
Jonathan B Coe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 11 08:31:06 PST 2018
jbcoe added a comment.
It might be worth adding some very simple get/set tests to ensure that properties are set as intended.
================
Comment at: tools/libclang/CIndex.cpp:4720
+
+#define HANDLE_CASE(P, PROPERTY_NAME) \
+ case CXPrintingPolicy_##PROPERTY_NAME: \
----------------
I’m not convinced that the code replaced by the macro is sufficiently complicated to justify use of a macro.
================
Comment at: tools/libclang/CIndex.cpp:4763
+#undef HANDLE_CASE
+#define HANDLE_CASE(P, PROPERTY_NAME, VALUE) \
+ case CXPrintingPolicy_##PROPERTY_NAME: \
----------------
I’m not convinced that the code replaced by the macro is sufficiently complicated to justify use of a macro.
Repository:
rC Clang
https://reviews.llvm.org/D39903
More information about the cfe-commits
mailing list