There is no advantage in having them in separate files, I doubt some will ever use them separately.
This also makes it easier to move the API to LLVM.
Paths
| Differential D54977
[analyzer] Moved the whole SMT API to a single file. NFC. ClosedPublic Authored by mikhail.ramalho on Nov 27 2018, 2:35 PM.
Details Summary There is no advantage in having them in separate files, I doubt some will ever use them separately. This also makes it easier to move the API to LLVM.
Diff Detail Event TimelineHerald added subscribers: dkrupp, donat.nagy, Szelethus and 4 others. · View Herald TranscriptNov 27 2018, 2:35 PM mikhail.ramalho added a parent revision: D54976: [analyzer] Got rid of the `Z3ConstraintManager` class.Nov 27 2018, 2:35 PM Comment Actions The advantage is it's easier to find stuff with a 1-1 correspondence between class names and files. Comment Actions
I agree that having separate files helps but I'll send the other backends in the future, adding even more files. I was trying to reduce the clutter. Do you think I should put everything in a separate directory instead? Comment Actions I don't mind, it's entirely a matter of taste, as far as i understand. Please feel free to make it as comfortable for yourself as possible. Generally people are annoyed a bit by this sort of commits because when you move things around git blames get screwed. This revision is now accepted and ready to land.Nov 30 2018, 5:31 PM Closed by commit rC353372: Moved the whole SMT API to a single file. NFC. (authored by mramalho). · Explain WhyFeb 6 2019, 7:19 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 175585 clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTAPI.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTExpr.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTSolver.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTSort.h
|