From 29cafa66ad3878dbb9f82615f19fa0bded2e443c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 12 Jun 2011 15:46:16 +0000 Subject: Vendor import of clang trunk r132879: http://llvm.org/svn/llvm-project/cfe/trunk@132879 --- docs/UsersManual.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'docs/UsersManual.html') diff --git a/docs/UsersManual.html b/docs/UsersManual.html index 73ca6c6980b3c..4962a9211066a 100644 --- a/docs/UsersManual.html +++ b/docs/UsersManual.html @@ -273,6 +273,35 @@ when this is enabled, Clang will print something like: +
-fdiagnostics-format=clang/msvc/vi: +Changes diagnostic output format to better match IDEs and command line tools.
+
This option controls the output format of the filename, line number, and column printed in diagnostic messages. The options, and their affect on formatting a simple conversion diagnostic, follow: + +
+
clang (default)
+
+
t.c:3:11: warning: conversion specifies type 'char *' but the argument has type 'int'
+
+ +
msvc
+
+
t.c(3,11) : warning: conversion specifies type 'char *' but the argument has type 'int'
+
+ +
vi
+
+
t.c +3:11: warning: conversion specifies type 'char *' but the argument has type 'int'
+
+
+
+ + +
-f[no-]diagnostics-show-name: +Enable the display of the diagnostic name.
+
This option, which defaults to off, controls whether or not +Clang prints the associated name.
+
+
-f[no-]diagnostics-show-option: Enable [-Woption] information in diagnostic line.
This option, which defaults to on, @@ -499,6 +528,8 @@ it:

  • A categorization of the diagnostic as a note, warning, error, or fatal error.
  • A text string that describes what the problem is.
  • +
  • An option that indicates whether to print the diagnostic name [-fdiagnostics-show-name].
  • An option that indicates how to control the diagnostic (for diagnostics that support it) [-fdiagnostics-show-option].
  • -- cgit v1.2.3