blob: 7ee861879d52f1fb2b0a92f776625555a0dc07ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// slang-options.h
#ifndef SLANG_OPTIONS_H
#define SLANG_OPTIONS_H
#include "../compiler-core/slang-source-loc.h"
#include "../core/slang-basic.h"
namespace Slang
{
struct CommandOptions;
class DiagnosticSink;
class IArtifact;
UnownedStringSlice getCodeGenTargetName(SlangCompileTarget target);
SlangResult parseOptions(SlangCompileRequest* compileRequestIn, int argc, char const* const* argv);
// Initialize command options. Holds the details how parsing works.
void initCommandOptions(CommandOptions& commandOptions);
enum class Stage : SlangUInt32;
SlangSourceLanguage findSourceLanguageFromPath(const String& path, Stage& outImpliedStage);
SlangResult createArtifactFromReferencedModule(
String path,
SourceLoc loc,
DiagnosticSink* sink,
IArtifact** outArtifact);
} // namespace Slang
#endif
|