Instructs the compiler to recognize trigraph key combinations used to represent characters not found on some keyboards.
.-trigraph---. >>- -q--+-notrigraph-+-----------------------------------------><
A trigraph is a combination of three-key character combinations that let you produce a character that is not available on all keyboards.
The trigraph key combinations are:
Key Combination Character Produced ??= # ??( [ ??) ] ??/ \ ??' ^ ??< { ??> } ??! | ??- ~
The default -qtrigraph setting can be overridden by explicitly
setting the -q[no]trigraph option on the command line.
An explicit -q[no]trigraph specification on the command line takes precedence over the -q[no]trigraph setting normally associated with a given -qlanglvl compiler option, regardless of where the -q[no]trigraph specification appears on the command line.
The same is true for C++ programs.
xlc++ myprogram.C -qnotrigraph