diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-01-11 10:42:19 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-01-11 10:42:19 -0800 |
commit | 979ccb2e6f3f1f7f00a448eb440a85daf033dc9e (patch) | |
tree | fd2e294460c4832e1a450ed333b80a545cfdfc7e /tools/aapt2/ResourceParser.h | |
parent | e5b386d2bbfa0fdf6439850191a24dfc17ee50c3 (diff) |
AAPT2: Warn when positional arguments exist and --legacy is on
This is normally an error, but old AAPT didn't check for it correctly,
so many projects violate this. With --legacy, this becomes a warning.
Change-Id: I23647e029930e11b719591cd38609e1b43247e20
Diffstat (limited to 'tools/aapt2/ResourceParser.h')
-rw-r--r-- | tools/aapt2/ResourceParser.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceParser.h b/tools/aapt2/ResourceParser.h index 9ad749e27dbc..51cbbe19384e 100644 --- a/tools/aapt2/ResourceParser.h +++ b/tools/aapt2/ResourceParser.h @@ -44,6 +44,11 @@ struct ResourceParserOptions { * Whether the default setting for this parser is to allow translation. */ bool translatable = true; + + /** + * Whether positional arguments in formatted strings are treated as errors or warnings. + */ + bool errorOnPositionalArguments = true; }; /* |