diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-16 16:58:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-16 16:58:23 +0300 |
commit | d46b9aa882ff04ca43736eb4290cd100e54d2de2 (patch) | |
tree | 1181df80f1a2a84e4654173f73cba68ed855f802 /src/rules/constructor.cpp | |
parent | 971e3ef054af935eb2a0b8b11c7fb53a86dd00c7 (diff) | |
download | mplint-d46b9aa882ff04ca43736eb4290cd100e54d2de2.tar.gz mplint-d46b9aa882ff04ca43736eb4290cd100e54d2de2.tar.bz2 mplint-d46b9aa882ff04ca43736eb4290cd100e54d2de2.tar.xz mplint-d46b9aa882ff04ca43736eb4290cd100e54d2de2.zip |
Fix V006 warning if in constructor present attribute A_NONNULL.
Diffstat (limited to 'src/rules/constructor.cpp')
-rw-r--r-- | src/rules/constructor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rules/constructor.cpp b/src/rules/constructor.cpp index 8777ce1..e1795cb 100644 --- a/src/rules/constructor.cpp +++ b/src/rules/constructor.cpp @@ -57,7 +57,8 @@ parseLineRule(constructor) } else { - if (data.find("(") != std::string::npos) + if (data.find("(") != std::string::npos && + data.find("A_NONNULL(") == std::string::npos) { align = 0 ; const size_t sz = data.size(); |