-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor FPGA Memory Attributes Validation for Clarity and and Effici…
…ency This commit refactors the CheckValidFPGAMemoryAttributesVar function in SemaDeclAttr.cpp to improve the clarity and efficiency of the validation logic for FPGA memory attributes on variables. The updated implementation streamlines the condition checks, making the code easier to read and understand. Key changes include: - Simplifying the conditional logic to reduce complexity. - Using direct return statements for immediate feedback on validation status. - Enhancing readability by clearly separating checks for different variable types and attributes. This refactor ensures that the function more clearly expresses its intent, making the codebase more accessible for future development and optimizations. No functional changes are intended with this refactor; it aims solely at improving code quality and readability. Signed-off-by: Soumi Manna <soumi.manna@intel.com>
- Loading branch information
Showing
1 changed file
with
35 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters