๐ง dougpuob@gmail.com
User Details
- User Since
- Dec 7 2018, 10:34 PM (233 w, 5 d)
Apr 14 2023
- Removed unnecessary information from ReleaseNotes.rst
Against trunk.
Apr 11 2023
Apr 10 2023
Hi @PiotrZSL
I do not have permission to land the change. Can you please help me to land this change?
I missed the review before landing. I have a suggestion regarding the customized prefix "cust" because it confused me when I found the Hungarian notation patterns in the output message. Perhaps using "my" instead of "cust" would improve readability.
Apr 9 2023
- Improved suggestions in code review
- Extract method
- Remove template parameters in the getDeclTypeName() function
Apr 7 2023
Jan 16 2022
About the error message, "relocation truncated to fit: R_68K_PC16 against '.rodata.str1.1'" when compile with -static option. I traced the source code. M68K doesn't support CodeModel::Large and CodeModel::Kernel. So, to build a static executable binary via clang, adding -mcmodel=medium is a suitable choice at this moment.
- Rebase against trunk.
Jan 15 2022
- Add a descriptive comment.
Jan 10 2022
- Add a break to the case of switch statement. (Suggestions from RKSimon)
Jan 9 2022
- Refine the code and increase test coverage. (Suggestions from RKSimon)
- Remove braces for single line if statements.
Hi @myhsu
Even though the instruction selection is focused on sub 0 x only, I still want to build a simple function with clang and run it with QEMU user emulator (qemu-m68k). But I have no idea how to cross-compile it with GCC runtime, do you have any document for it or could you show me a brief instruction.
- Apply only the dividend value is zero and revert *.ll files.
Oct 6 2021
Aug 3 2021
Hi @thakis:
I can't access the repo, could you please help me to land?
- Improved code review suggestions.
- Moved config content of regression test to clang-tools-extra/test/clang-tidy/checkers/Inputs/readability-identifier-naming/hungarian-notation*/.clang-tidy, then refer to those files in tests.
Aug 2 2021
Jun 25 2021
Jun 10 2021
@njames93, Ping
May 16 2021
- Moved all static functions into IdentifierNamingCheck class, and called the configurationDiag() directly in IdentifierNamingCheck::getFileStyleFromOptions() method.
May 13 2021
May 11 2021
Hi @njames93:
Could you do me a favor? Because it is my first patch, something I'm not sure. I'm confused about can I land this patch now? I read the "LLVM Code-Review Policy and Practices" document, it said patches can be landed if received a LGTM, but seems you are still reviewing.
May 10 2021
- Removed diagnoseInvalidConfigOption() function.
- Created a HungarianNotation class and moved related functions into there.
May 8 2021
I tried to create a class, HungarianNotation, and put all related functions into the class. Then I can call configurationDiag() in HungarianNotation::checkOptionValid() function.
How about this way?
May 2 2021
That's ok. You have helped me a lots. Thank you.
May 1 2021
- Against trunk.
- Refined isHungarianNotationOptionEnabled() function.
- Changed old way that showing invalid config option in .clang-tidy config file. Now added a new function ClangTidyCheck::OptionsView::diagnoseInvalidConfigOption() instead.
- Recovered that document content missing in .rst.
Jan 13 2021
Ping @njames93
Dec 30 2020
Addressed comments by @njames93. Including adding warning message for unsupported options in config file, refining code in getFileStyleFromOptions(), and for consistent reason to use llvm::yaml::parseBool() function instead of checking On/Off string.
Dec 29 2020
- Removed unrelated comments.
- Against git master.
- Refined isHungarianNotationOptionEnabled() function.
- Classify document and test cases.
- Fixed assertions by clang-format.
- Instead check On/Off string with llvm::yaml::parseBool() function for consistent.
- Improved code.
- Add new check for unsupported option.
Dec 22 2020
Dec 11 2020
Hi @njames93, thank you for your review suggestions, I have improved them and against my change to the main branch.
- Fixed assertions by clang-format.
- Against git master.
- Refined isHungarianNotationOptionEnabled() function.
- Classify document and test cases.
Dec 6 2020
arc diff with the correct base.
- Improved code review suggestions from @njames93. Including move the IdentifierNamingCheck::HNOption variable to IdentifierNamingCheck::FileStyle::HNOption, use try_emplace() instead of insert() and lookup().
Dec 1 2020
Nov 24 2020
- Improved code review suggestions from Aaron.Ballman and Eugene.Zelenko. Including return default initializer instead of empty string, use isa<>() instead of if statement with multiple conditions, use StringRef array instead of list<std::string>.
Hi @aaron.ballman and @Eugene.Zelenko, thank you for your suggestions. I will improve them and upload my diff later.
Nov 22 2020
- Improved code review suggestions from Aaron Ballman(aaron.ballman). Including document, single-line if statements, no reference with StringRef, "char"-->"char[]" for HNOption.CString, use llvm::transform insteads of for-loop to uppercase string, don't check CXXMethod in getDeclTypeName(), remove const_cast<char *> in getDeclTypeName(), use if-else insteads of switch-case(simplify src).
Hi @aaron.ballman, thank you for your feedback. I will update my change later. Unrelated change were mixed with other commits when I against git master. I did it again then the problem was gone. I found the command, arc diff master --preview, knowing exactly changes before uploading diff by arc.
Nov 21 2020
Against git master.
Nov 19 2020
Against git master.
Nov 18 2020
ping?
Nov 12 2020
- Shortened namespace with type alias.
- Removed namespace for StringRef.
Nov 4 2020
- Fixed warnings of Clang-Tidy.
- Fixed build failure on BuildBot. (Touch empty data from Options.get())
- Changed llvm::StringMap with std::pair in getHungarianNotationDefaultConfig().
- Moved HNOpts and HNDerviedTypes declarations out of getHungarianNotationDefaultConfig().
- Reused SmallString<128> for string concatenation.
- Removed redundant m(HungarianNotation) in #define NAMING_KEYS(m).
Nov 1 2020
- Applied all patches with the trunk(1800b44651c19b11e7680f908344d5751e8d2246).
- Moved HNOption pointer out of NamingStyle data structure.
- Removed parseHungarianPrefix() function, use Options.get() instead.
Oct 31 2020
- Removed clearAll() function and made the HPOption variable passing by value(origin is std::move()).
- Moved static HNOption variable from static getNamingStyles() function to IdentifierNamingCheck class a private data member.
- Replaced auto keyword with explicit std::string.
- Elided braces around single-line.
- Used CXXRecordDecl::isAbstract() directly.
- changed const auto to const auto * for pointer objects.
- Enhanced test case for enum with two EnumConstant decls.
- Removed unnecessary clang:: namespace for variables.
- Executed arc lint
- Final changes.
- Executed arc lint
Oct 30 2020
Reply code review suggestions. I will upload my change later.
Oct 23 2020
- Changed the type of HNOption from std::shared_ptr to reference.
Thank you for the suggestion.
Oct 21 2020
- Changed Hungarian Notation as an prefix style (not a case type).
- Changed XxxHungarianPrefix as an enumeration from bool.
- Updated documents.
Oct 20 2020
Oct 13 2020
Merged all commits as one single commit. (Trying to resolve "No such file or directory" error from the scripts/phabtalk/apply_patch2.py!_apply_diff() function)
Hi @aaron.ballman and @njames93,
I addressed your code review suggestions and supported Hungarian Notation prefix for decl of enum and class(option) at latest patch. Unfortunately, I encountered a problem that new patch failed on remote BuildBot, it showed the "No such file or directory" error message when it was trying to call apply_patch2.py!_apply_diff(). Do you have any idea what is going on? Do you suggest I create a new Diff(new diff id) for it ?
Rename file name, "readability-identifier-naming-hungarian-notation-default.cpp" to "readability-identifier-naming-hungarian-notation.cpp".
Merged with the master then do arc diff master --update D86671 again. (Trying to resolve "No such file or directory" error from the scripts/phabtalk/apply_patch2.py!_apply_diff() function)
Oct 11 2020
Previous arc diff got problem(failed on builtbot), do it again with arc diff master --update D86671.
Oct 10 2020
- Support to add Class prefix for Hungarian Notation.
- Support to add Enum prefix for Hungarian Notation.
- Support unsigned long long, ULONG, and HANDLE types and others.
- Support options for Hungarian Notation in config file.
- Added more test cases.
Sep 30 2020
Sep 20 2020
Hi @aaron.ballman
About changing size_t nLength to cbLength. I searched MSVC folders with size_t, many names of variable start with n, or i in MFC related files. So I prefer to keep it starts with n. Another side to name starts with cb, I found variables like cbXxx are defined with ULONG, DWORD, or UCHAR type.
Sep 19 2020
Replied comments by @aaron.ballman
Sep 13 2020
Sep 11 2020
Fixed crash on Windows when run regression test (llvm-lit for readability-identifier-naming.cpp file).
Sep 9 2020
- Fixed lint warnings and regression test failures on Windows.