[PATCH] D23816: Add support for -fdiagnostics-abs-path: printing absolute paths in diagnostics

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 25 17:08:18 PDT 2016


hans marked an inline comment as done.

================
Comment at: include/clang/Driver/Options.td:994
@@ -993,1 +993,3 @@
   Flags<[CC1Option]>, HelpText<"Do not include source location information with diagnostics">;
+def fdiagnostics_abs_path : Flag<["-"], "fdiagnostics-abs-path">, Group<f_Group>,
+  Flags<[CC1Option, CoreOption]>, HelpText<"Print absolute paths in diagnostics">;
----------------
rsmith wrote:
> How about `-fdiagnostics-[use-]absolute-paths` rather than `-fdiagnostics-abs-path` to avoid any confusion about this referring to the `abs` function?
Sounds good to me.


https://reviews.llvm.org/D23816





More information about the cfe-commits mailing list