Use SPDX identifiersSPDX identifiers are simpler, and reduce the amount of cruft we have incode files. They are recommended by linux foundation, and therefore weshould do as they allow.This pa
Use SPDX identifiersSPDX identifiers are simpler, and reduce the amount of cruft we have incode files. They are recommended by linux foundation, and therefore weshould do as they allow.This patchset does not intend to modify any intent on any existingcopyrights or licenses, only to standardize their inclusion.[1] https://www.linuxfoundation.org/blog/blog/copyright-notices-in-open-source-software-projectsChange-Id: I935c7c0156caa78fc368c929cebd0f068031e830Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
Remove IWYU pragmasThese were added as part ofd5c80ad9c07b94465d8ea62d2b6f87c30cac765e: test treewide: iwyuSince then, Nan hasn't been very active on the project, and to myknowledge, since the
Remove IWYU pragmasThese were added as part ofd5c80ad9c07b94465d8ea62d2b6f87c30cac765e: test treewide: iwyuSince then, Nan hasn't been very active on the project, and to myknowledge, since the initial run, we've never used IWYU again.clang-include-cleaner seems to work well without needing these pragmas,and is what we're using, even if it's less useful than IWYU.Remove all mention of IWYU.Tested: Code compiles.Change-Id: I06feedeeac9a114f5bdec81d59ca83223efd8aa7Signed-off-by: Ed Tanous <etanous@nvidia.com>
Remove ibm locks featureThis feature was introduced to manage the operation sync at BMC whilemultiple clients manage the BMC.This feature scope has gone away and it is not a simple code to maint
Remove ibm locks featureThis feature was introduced to manage the operation sync at BMC whilemultiple clients manage the BMC.This feature scope has gone away and it is not a simple code to maintainas per the growing standards of bmcweb.This commit removes the feature from this repo.Tested by: Locks routes are not available anymoreChange-Id: I257225cfb1f43d7d5dadb21a28a2ee5345c5112aSigned-off-by: Sunitha Harish <sunithaharish04@gmail.com>Signed-off-by: Ed Tanous <ed@tanous.net>
Delete old testsThese tests are commented out, and have been for a very long time.Clearly they don't matter.Change-Id: I084378ee9bc43bb64bd6e134398bbf2173d263ffSigned-off-by: Ed Tanous <ed@tan
Delete old testsThese tests are commented out, and have been for a very long time.Clearly they don't matter.Change-Id: I084378ee9bc43bb64bd6e134398bbf2173d263ffSigned-off-by: Ed Tanous <ed@tanous.net>
Add misc-include-cleanerAnd fix the includes that are wrong.Note, there is a very large ignore list included in the .clang-tidyconfigcfile. These are things that clang-tidy doesn't yet handlew
Add misc-include-cleanerAnd fix the includes that are wrong.Note, there is a very large ignore list included in the .clang-tidyconfigcfile. These are things that clang-tidy doesn't yet handlewell, like knowing about a details include.Change-Id: Ie3744f2c8cba68a8700b406449d6c2018a736952Signed-off-by: Ed Tanous <ed@tanous.net>
ibm-locks: shut up clang-tidy by disabling codeThere is code in ibm/locks that has had clang-tidy warnings disabledfor a while due to multiple safety and endianness issues. The codehas not been
ibm-locks: shut up clang-tidy by disabling codeThere is code in ibm/locks that has had clang-tidy warnings disabledfor a while due to multiple safety and endianness issues. The codehas not been fixed in a while and with clang-16 it is unable to beexempted further. Disable it until someone who cares can fix thisin the proper way.```../include/ibm/locks.hpp:522:14: error: 'p' is an unsafe pointer used for buffer access [-Werror,-Wunsafe-buffer-usage] uint8_t* p = reinterpret_cast<uint8_t*>(&resourceId1); ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~../include/ibm/locks.hpp:527:25: note: used in buffer access here uint8_t pPosition = p[position]; ^../include/ibm/locks.hpp:524:14: error: 'q' is an unsafe pointer used for buffer access [-Werror,-Wunsafe-buffer-usage] uint8_t* q = reinterpret_cast<uint8_t*>(&resourceId2); ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~../include/ibm/locks.hpp:529:25: note: used in buffer access here uint8_t qPosition = q[position];```Signed-off-by: Patrick Williams <patrick@stwcx.xyz>Change-Id: I8a7fcbed1099419ad1715c86ffcbfef20820251e
treewide: reorganize unit testsLike other C++ projects, unit tests normally are in a separate repo andrespect the folder structure of the file under test.This commit deleted all "ut" folder and
treewide: reorganize unit testsLike other C++ projects, unit tests normally are in a separate repo andrespect the folder structure of the file under test.This commit deleted all "ut" folder and move tests to a "test" folder.The test folder also has similar structure as the main folder.This commit also made neccessary include changes to make codes compile.Unused tests are untouched.Tested: unit test passed.Reference:[1] https://github.com/grpc/grpc/tree/master/test[2] https://github.com/boostorg/core/tree/414dfb466878af427d33b36e6ccf84d21c0e081b/test[3] Many other OpenBMC repos: https://github.com/openbmc/entity-manager/tree/master/test[4] https://stackoverflow.com/questions/2360734/whats-a-good-directory-structure-for-larger-c-projects-using-makefileSigned-off-by: Nan Zhou <nanzhoumails@gmail.com>Change-Id: I4521c7ef5fa03c47cca5c146d322bbb51365ee96