[PATCH] Option parsing: recognize the special -- token

Reid Kleckner rnk at google.com
Fri Aug 2 13:56:58 PDT 2013


  This could be a breaking behavior change for people who expect clang to parse args after --.  They're crazy, of course, but you should ask Chandler if changing this for all driver modes is OK.


================
Comment at: lib/Option/OptTable.cpp:275
@@ -257,3 +274,3 @@
       ++Index;
       continue;
     }
----------------
I think this would probably be cleaner as an inner loop followed by a break.


http://llvm-reviews.chandlerc.com/D1274



More information about the llvm-commits mailing list