Introduction#
I’m a demo documentation page.
- -Wno-shift-overflow, -Wshift-overflow=n, -Wshift-overflow#
Note
Default value is
-Wno-shift-overflow
,-Wshift-overflow
is enabled by-Wall
.These options control warnings about left shift overflows.
-Wshift-overflow=1
This is the warning level of
-Wshift-overflow
and …
- -Wno-shift-overflow2, -Wshift-overflow2=n (non-default), -Wshift-overflow2 (non-default)#
These options control warnings about left shift overflows.
-Wshift-overflow2=1
This is the warning level of
-Wshift-overflow2
and …
- -Wno-shift-overflow3#
Default option value for
-Wshift-overflow3
.
- -Wshift-overflow3=n, -Wshift-overflow3#
These options control warnings about left shift overflows.
-Wshift-overflow3=1
This is the warning level of
-Wshift-overflow3
and-Wshift-overflow3
and-Wshift-overflow3
and-Wshift-overflow3
and-Wshift-overflow3
and …
Enabled by
-Wall
.
- -Wauggest-attribute=[pure|const|noreturn|format|cold|malloc]#
Suggest it.
Todo
Improve wording!
- -Wall#
Enable it all :)
Test this: -Wall-like-all
.
I am a super-command. I am strong and I am emphasis.
extern void * my_memcpy (void *dest, const void *src, size_t len) __attribute__((nonnull (1, 2))); void fatal () __attribute__ ((noreturn)); void fatal (/* ... */) { /* ... */ /* Print error message. */ /* ... */ exit (1); }
Show Samp with a variable.
Show it:
gcc a.c
./a.out
Code block:
gcc a.c
./a.out
Diagnostic Message Formatting Options
See Options to Control Diagnostic Messages Formatting.
-fmessage-length
=n
-fdiagnostics-plain-output
-fdiagnostics-show-location
=[once|every-line]
-fdiagnostics-color
=[auto|never|always]
-fdiagnostics-urls
=[auto|never|always]
-fdiagnostics-format
=[text|json]
-fno-diagnostics-show-option
-fno-diagnostics-show-caret
-fno-diagnostics-show-labels
-fno-diagnostics-show-line-numbers
-fno-diagnostics-show-cwe
-fdiagnostics-minimum-margin-width
=width
-fdiagnostics-parseable-fixits
-fdiagnostics-generate-patch
-fdiagnostics-show-template-tree
-fno-elide-type
-fdiagnostics-path-format
=[none|separate-events|inline-events]
-fdiagnostics-show-path-depths
-fno-show-column
-fdiagnostics-column-unit
=[display|byte]
-fdiagnostics-column-origin
=origin
-fdiagnostics-escape-format
=[unicode|bytes]
-fdiagnostics-escape-format
=[unicode|bytes]
-fdiagnostics-escape-format
=[unicode|bytes]
-fdiagnostics-escape-format
=[unicode|bytes]
-fdiagnostics-escape-format
=[unicode|bytes]
-fdiagnostics-escape-format
=[unicode|bytes]
-fdiagnostics-escape-format
=[unicode|bytes]
-fdiagnostics-escape-format
=[unicode|bytes]
-fdiagnostics-escape-format
=[unicode|bytes]
Static Analyzer Options
-fanalyzer
-fanalyzer-call-summaries
-fanalyzer-checker
=name
-fno-analyzer-feasibility
-fanalyzer-fine-grained
-fanalyzer-state-merge
-fanalyzer-state-purge
-fanalyzer-transitivity
-fanalyzer-verbose-edges
-fanalyzer-verbose-state-changes
-fanalyzer-verbosity
=level
-fdump-analyzer
-fdump-analyzer-stderr
-fdump-analyzer-callgraph
-fdump-analyzer-exploded-graph
-fdump-analyzer-exploded-nodes
-fdump-analyzer-exploded-nodes-2
-fdump-analyzer-exploded-nodes-3
-fdump-analyzer-exploded-paths
-fdump-analyzer-feasibility
-fdump-analyzer-json
-fdump-analyzer-state-purge
-fdump-analyzer-supergraph
-Wno-analyzer-double-fclose
-Wno-analyzer-double-free
-Wno-analyzer-exposure-through-output-file
-Wno-analyzer-file-leak
-Wno-analyzer-free-of-non-heap
-Wno-analyzer-malloc-leak
-Wno-analyzer-mismatching-deallocation
-Wno-analyzer-null-argument
-Wno-analyzer-null-dereference
-Wno-analyzer-possible-null-argument
-Wno-analyzer-possible-null-dereference
-Wno-analyzer-shift-count-negative
-Wno-analyzer-shift-count-overflow
-Wno-analyzer-stale-setjmp-buffer
-Wno-analyzer-tainted-allocation-size
-Wno-analyzer-tainted-array-index
-Wno-analyzer-tainted-divisor
-Wno-analyzer-tainted-offset
-Wno-analyzer-tainted-size
-Wanalyzer-too-complex
-Wno-analyzer-unsafe-call-within-signal-handler
-Wno-analyzer-use-after-free
-Wno-analyzer-use-of-pointer-in-stale-stack-frame
-Wno-analyzer-use-of-uninitialized-value
-Wno-analyzer-write-to-const
-Wno-analyzer-write-to-string-literal
My name is Karlíček Końíčku and François-Xavier.