Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize all identifiers to NFC #2489

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Commits on Aug 9, 2023

  1. gccrs: Normalize all identifier tokens

    gcc/rust/ChangeLog:
    
    	* lex/rust-lex.cc (assert_source_content): Fix namespace specifier
    	(test_buffer_input_source): Likewise.
    	(test_file_input_source): Likewise.
    	* lex/rust-lex.h: Move InputSource ...
    	* lex/rust-input-source.h: ... to here. (New file)
    	* lex/rust-token.cc (nfc_normalize_token_string): New function
    	* lex/rust-token.h (nfc_normalize_token_string): New function
    	* rust-lang.cc (run_rust_tests): Modify order of selftests.
    	* rust-session-manager.cc (validate_crate_name): Modify interface of Utf8String.
    	* util/rust-unicode.cc (lookup_cc): Modify codepoint_t typedef.
    	(lookup_recomp): Likewise.
    	(recursive_decomp_cano): Likewise.
    	(decomp_cano): Likewise.
    	(sort_cano): Likewise.
    	(compose_hangul): Likewise.
    	(assert_normalize): Likewise.
    	(Utf8String::nfc_normalize): New function.
    	* util/rust-unicode.h: Modify interface of Utf8String.
    
    gcc/testsuite/ChangeLog:
    
    	* rust/compile/unicode_norm1.rs: New test.
    
    Signed-off-by: Raiki Tamura <tamaron1203@gmail.com>
    tamaroning committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    2fa4f4a View commit details
    Browse the repository at this point in the history