diff options
author | Thomas Helland <[email protected]> | 2017-05-21 00:21:54 +0200 |
---|---|---|
committer | Thomas Helland <[email protected]> | 2017-09-26 18:25:38 +0200 |
commit | d86bc364469b1a413de5dbc357de0516b506e29e (patch) | |
tree | 95bbb8a7d0386e41159c8af43b1936016ef4a643 /.dir-locals.el | |
parent | e7220d2c22b55b8305e5338b80483a6659fb15c8 (diff) |
glcpp: Avoid unnecessary call to strlen
Length of the token was already calculated by flex and stored in yyleng,
no need to implicitly call strlen() via linear_strdup().
Signed-off-by: Thomas Helland <[email protected]>
Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
V2: Also convert this pattern in glsl_lexer.ll
V3: Remove a misplaced comment
V4: Use a temporary char to avoid type change
Remove bogus +1 on length check of identifier
Diffstat (limited to '.dir-locals.el')
0 files changed, 0 insertions, 0 deletions