aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-02-17 10:58:07 +0000
committerGitHub <noreply@github.com>2022-02-17 10:58:07 +0000
commit752bf6c80a922e09edf5bcb53e15e08e83057a7f (patch)
tree0968dcfc9a8ccc858a5aa5531463cc50a713eab4 /gcc/rust/parse/rust-parse.cc
parent6a6c21709314e72f2edb5539913a4b7ce7a1cb66 (diff)
parent766a9002a3d5fb6701de2d84ce689379811eabff (diff)
downloadgcc-752bf6c80a922e09edf5bcb53e15e08e83057a7f.zip
gcc-752bf6c80a922e09edf5bcb53e15e08e83057a7f.tar.gz
gcc-752bf6c80a922e09edf5bcb53e15e08e83057a7f.tar.bz2
Merge #935
935: frust-cfg: Only allow double quoted values r=philberty a=CohenArthur Closes #910 This PR separates the `handle_cfg_option()` function in two, separating the parsing logic from the session logic. The parsing logic is able to be unit tested, and now only allows quoted values. What remains to be done is to only allow `key` and `value` to be proper rust identifiers. We need to figure out if we'd like to spawn a parser here and parse identifiers, or simply sanitize both strings to make sure they do not contain invalid characters. Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/parse/rust-parse.cc')
-rw-r--r--gcc/rust/parse/rust-parse.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse.cc b/gcc/rust/parse/rust-parse.cc
index e78de51..f2c1301 100644
--- a/gcc/rust/parse/rust-parse.cc
+++ b/gcc/rust/parse/rust-parse.cc
@@ -118,5 +118,4 @@ extract_module_path (const AST::AttrVec &inner_attrs,
return path;
}
-
} // namespace Rust