Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Flint thinks the filename in an #include is code... #1

Closed
d-frey opened this issue May 3, 2014 · 1 comment
Closed

Flint thinks the filename in an #include is code... #1

d-frey opened this issue May 3, 2014 · 1 comment
Labels

Comments

@d-frey
Copy link

d-frey commented May 3, 2014

I use paths that include c++, example:

#include <foo/c++14/bar.hpp>

When I check the file with flint++, I get:

Use prefix notation '++c'.

Postfix iterators inject a copy operation, almost doubling the workload.

For some reason, I have doubt that this will improve my code :)

@JossWhittle
Copy link
Owner

Good catch, this shows there is a bug in the Tokenizer as an include path should be a string literal. Cheers for the catch, I've hotfixed the Postfix Iterator test to make it avoid false positives and I'll look into the Tokenizer bug asap. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants