Open
Conversation
jbeder
requested changes
Jun 16, 2020
| std::size_t GetFlowLevel() const { return m_flows.size(); } | ||
|
|
||
| Token::TYPE GetStartTokenFor(IndentMarker::INDENT_TYPE type) const; | ||
| static Token::TYPE GetStartTokenFor(IndentMarker::INDENT_TYPE type); |
Owner
There was a problem hiding this comment.
This method is only used in the .cpp file; can you just put it in an anonymous namespace there (rather than making it a static member function)?
Contributor
Author
There was a problem hiding this comment.
It uses INDENT_TYPE , which is declared private.
Contributor
Author
|
Couldn't figure out how to move the GetStartTokenFor function in the namespace. |
Owner
|
What was the problem when trying to move GetStartTokenFor into the cpp file? |
Contributor
Author
|
Contributor
Author
|
Rebased. |
f92d321 to
f359277
Compare
Found with readability-const-return-type Signed-off-by: Rosen Penev <rosenp@gmail.com>
Found with readability-make-member-function-const Signed-off-by: Rosen Penev <rosenp@gmail.com>
Found with readability-convert-member-functions-to-static Signed-off-by: Rosen Penev <rosenp@gmail.com>
Found with readability-string-compare Signed-off-by: Rosen Penev <rosenp@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.