/etc/adlint/conf.d/i686-mingw/traits-gcc_4.6.1.erb is in adlint 3.2.14-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | # ___ ____ __ ___ _________
# / | / _ |/ / / / | / /__ __/ Source Code Static Analyzer
# / /| | / / / / / / / |/ / / / AdLint - Advanced Lint
# / __ |/ /_/ / /___/ / /| / / /
# /_/ |_|_____/_____/_/_/ |_/ /_/ Copyright (C) 2010-2014, OGIS-RI Co.,Ltd.
#
# Traits file generated by adlintize <%= AdLint::SHORT_VERSION %> at <%= Time.now %>.
# Schema version of the traits file.
# DO NOT EDIT MANUALLY!
version: "<%= AdLint::TRAITS_SCHEMA_VERSION %>"
# List of names of source code examination packages.
#
# "c_builtin" is a builtin source code examination package for C language.
# You can install optional examination packages and append (or replace) this
# list to specify which examination packages are to be run.
exam_packages:
- "c_builtin"
#
# Project specific traits section
#
project_traits:
# Project name.
project_name: "<%= project_name %>"
# Project root directory.
project_root: "<%= vpath %>"
# Analysys target selection.
# Ex.
# target_files:
# inclusion_paths:
# - "../foo"
# - "../bar"
# exclusion_paths:
# - "../bar/baz"
target_files:
inclusion_paths:
- "<%= vpath %>"
exclusion_paths:
# Pathname of the project specific initial header file.
# This header file is automatically included above the first line of the
# target source file.
initial_header: "<%= pinit_fpath.basename %>"
# Project specific additional include paths.
# Ex.
# file_search_paths:
# - "include/foo"
# - "../include/bar"
# - "/opt/baz/include"
file_search_paths:
#
# Project specific coding style section
#
coding_style:
# Indent style which is a convention governing the identation of blocks.
# Select from "K&R", "Allman" and "GNU".
#
# The value "K&R" means...
# int foo(int i)
# {
# if (i == 0) {
# return 0;
# }
# return i;
# }
#
# The value "Allman" means...
# int foo(int i)
# {
# if (i == 0)
# {
# return 0;
# }
# return i;
# }
#
# The value "GNU" means...
# int
# foo(int i)
# {
# if (i == 0)
# {
# return 0;
# }
# return i;
# }
indent_style: "K&R"
# Appearance width of a TAB character.
tab_width: 8
# Appearance width of 1-level of the indentation.
indent_width: 4
# Character encoding of source files.
file_encoding:
#
# Compiler specific traits section
#
compiler_traits:
# Pathname of the compiler specific initial header file.
# This header file is automatically included above the first line of the
# project specific initial header file.
initial_header: "<%= cinit_fpath.basename %>"
# Compiler specific include paths.
# Ex.
# file_search_paths:
# - "/usr/include"
# - "/usr/local/include"
file_search_paths:
- "/mingw/lib/gcc/mingw32/4.6.1/include"
- "/mingw/include"
- "/mingw/lib/gcc/mingw32/4.6.1/include-fixed"
#
# Compiler specific standard type section
#
standard_types:
# Bit size of the `char' type family.
char_size: 8
# Bit size of the alignment of the `char' type family.
char_alignment: 8
# Bit size of the `short' type family.
short_size: 16
# Bit size of the alignment of the `short' type family.
short_alignment: 16
# Bit size of the `int' type family.
int_size: 32
# Bit size of the alignment of the `int' type family.
int_alignment: 32
# Bit size of the `long int' type family.
long_size: 32
# Bit size of the alignment of the `long int' type family.
long_alignment: 32
# Bit size of the `long long int' type family.
long_long_size: 64
# Bit size of the alignment of the `long long int' type family.
long_long_alignment: 64
# Bit size of the `float' type.
float_size: 32
# Bit size of the alignment of the `float' type.
float_alignment: 32
# Bit size of the `double' type.
double_size: 64
# Bit size of the alignment of the `double' type.
double_alignment: 64
# Bit size of the `long double' type.
long_double_size: 96
# Bit size of the alignment of the `long double' type.
long_double_alignment: 96
# Bit size of the pointer to functions.
code_ptr_size: 32
# Bit size of the alignment of the pointer to functions.
code_ptr_alignment: 32
# Bit size of the pointer to data.
data_ptr_size: 32
# Bit size of the alignment of the pointer to data.
data_ptr_alignment: 32
# Treat the `char' type as same as the `unsigned char' type?
char_as_unsigned_char: true
# Treat the `>>' operator as a logical shift, not an arithmetic shift?
arithmetic:
logical_right_shift: true
# Max length of all symbols can be identified by the compiler.
identifier_max: 128
# Token substitution setting to warn the use of compiler specific extensions.
#
# If your compiler supports `__attribute__(...)' extension and you want to
# know the use of this extension, specify as below.
# extension_substitutions:
# "__attribute__(__adlint__any)": ""
# The token sequence consists of `__attribute__', `(', any kind of tokens,
# `)' will be replaced with nothing (erased) after the preprocessing phase.
# And this substitution will be warned by the message W0061.
extension_substitutions:
"__extension__": ""
"__attribute__(__adlint__any)": ""
"__cdecl": ""
"__inline__": "inline"
"__asm__ __adlint__any(__adlint__any)": ""
"near": ""
"far": ""
# Token substitution setting to silently ignore the use of compiler specific
# extensions.
#
# If your compiler supports `__asm__ volatile (...)' extension and you do not
# mind the use of this extension, specify as below.
# arbitrary_substitutions:
# "__asm__ __adlint__any(__adlint__any)": ""
# The token sequence consists of `__asm__', any kind of tokens, `(', any kind
# of tokens, `)' will be replaced with nothing (erased) silently after the
# preprocessing phase.
arbitrary_substitutions:
"typeof": "__typeof__"
"__typeof": "__typeof__"
"alignof": "__alignof__"
"__alignof": "__alignof__"
#
# Linker specific traits section
#
linker_traits:
# Max length of external symbols can be identified by the linker.
identifier_max: 128
# Are external symbols identified without case by the linker?
identifier_ignore_case: false
#
# Message traits section
#
message_traits:
# Language of the message text.
# Currently, "en_US" and "ja_JP" are supported.
# Please help to translate the message catalog into your language.
language: "<%= lang %>"
# Enable inline annotation based message suppression?
individual_suppression: true
# Project-wide code check exclusion settings.
# Ex.
# exclusion:
# categories:
# - "REL"
# - "PRT"
# severities: "[ABC][5-9][0-9]"
# messages:
# W0001: "c_builtin"
# W0002: "c_ansi"
exclusion:
# Project-wide code check inclusion settings.
# Ex.
# inclusion:
# messages:
# W0001: "c_builtin"
# W0002: "c_ansi"
inclusion:
# Message text replacement.
# Ex.
# change_list:
# W9999:
# package: "c_builtin"
# classes:
# - "REL:A10"
# - "PRT:B20"
# format: "Your custom message for the warning of W9999."
# X9999:
# package: "core"
# classes:
# - "ERR:X99"
# format: "Your custom message for the warning of X9999."
# E9999:
# package: "core"
# classes:
# - "ERR:X99"
# format: "Your custom message for the warning of E9999."
change_list:
|