[PATCH] D44480: [Sema] Don't skip function bodies with 'auto' without trailing return type

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 29 13:17:22 PDT 2018


rsmith accepted this revision.
rsmith added inline comments.
This revision is now accepted and ready to land.


================
Comment at: test/CodeCompletion/skip-auto-funcs.cpp:9
+  if (x = 10) {}
+  // Check that this function is skipped.
+  // CHECK: 8:9: warning: using the result of an assignment as a condition without parentheses
----------------
is skipped -> is not skipped?


================
Comment at: test/CodeCompletion/skip-auto-funcs.cpp:18
+  if (x = 10) {}
+  // Check that this function is skipped.
+  // CHECK: 17:9: warning: using the result of an assignment as a condition without parentheses
----------------
is skipped -> is not skipped?


Repository:
  rC Clang

https://reviews.llvm.org/D44480





More information about the cfe-commits mailing list