malaperle added inline comments.

================
Comment at: include/indexstore/IndexStoreCXX.h:75
+  bool foreachRelation(llvm::function_ref<bool(IndexSymbolRelation)> receiver) 
{
+#if INDEXSTORE_HAS_BLOCKS
+    return indexstore_occurrence_relations_apply(obj, 
^bool(indexstore_symbol_relation_t sym_rel) {
----------------
I know this is an old revision but I thought I should ask for the future 
patch... Would it be possible to not use "blocks"? This will affect portability 
of the code. I'm not familiar with blocks but I would think it would be 
possible to replace with C++11 lambdas, or something else that's standard. I 
was just playing around with this code and since I used GCC, it did not work.


https://reviews.llvm.org/D39050



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to