HomePhabricator

[libTooling] Change `addInclude` to use expansion locs.

Authored by ymandel on Dec 22 2020, 7:02 AM.

Description

[libTooling] Change addInclude to use expansion locs.

This patch changes the default range used to anchor the include insertion to use
an expansion loc. This ensures that the location is valid, when the user relies
on the default range.

Driveby: extend a FIXME for a problem that was emphasized by this change; fix some spellings.

Differential Revision: https://reviews.llvm.org/D93703

Details

Committed
ymandelJan 14 2021, 7:08 PM
Differential Revision
D93703: [libTooling] Change `addInclude` to use expansion locs.
Parents
rG214387c2c694: [libomptarget][nvptx] Reduce calls to cuda header
Branches
Unknown
Tags
Unknown