Skip to content

clang_tokenize() returns token for one-past-end token #9441

@llvmbot

Description

@llvmbot
Bugzilla Link 9069
Resolution FIXED
Resolved on Nov 10, 2016 02:55
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @emilio,@tkremenek

Extended Description

The clang_tokenize() function returns all tokens falling into a range, but seems to ignore the fact that the range's endpoint is actually outside the ROI.
Thus, the generated token-list is one element too long.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions