-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feature/issue-2814…
…-warmup-auto
- Loading branch information
Showing
223 changed files
with
77,198 additions
and
73,650 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
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
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
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
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
26 changes: 26 additions & 0 deletions
26
src/stan/lang/generator/generate_model_compile_info_method.hpp
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef STAN_LANG_GENERATOR_GENERATE_MODEL_COMPILE_INFO_METHOD_HPP | ||
#define STAN_LANG_GENERATOR_GENERATE_MODEL_COMPILE_INFO_METHOD_HPP | ||
|
||
#include <stan/lang/ast.hpp> | ||
#include <stan/lang/generator/constants.hpp> | ||
#include <ostream> | ||
#include <string> | ||
|
||
namespace stan { | ||
namespace lang { | ||
|
||
/** | ||
* Generate the <code>model_compile_info</code> method on the specified stream. | ||
* | ||
* @param[in,out] o stream for generating | ||
*/ | ||
void generate_model_compile_info_method(std::ostream& o) { | ||
o << INDENT << "std::vector<std::string> model_compile_info() const {" << EOL | ||
<< INDENT2 << "std::vector<std::string> stanc_info;" << EOL << INDENT2 | ||
<< "stanc_info.push_back(\"stanc_version = stanc2\");" << EOL << INDENT2 | ||
<< "return stanc_info;" << EOL << INDENT << "}" << EOL2; | ||
} | ||
|
||
} // namespace lang | ||
} // namespace stan | ||
#endif |
Oops, something went wrong.