xref: /openbsd-src/gnu/llvm/llvm/docs/CodeOfConduct.rst (revision d415bd752c734aee168c4ee86ff32e8cc249eb16)
1==============================
2LLVM Community Code of Conduct
3==============================
4
5The LLVM community has always worked to be a welcoming and respectful
6community, and we want to ensure that doesn't change as we grow and evolve. To
7that end, we have a few ground rules that we ask people to adhere to:
8
9* `be friendly and patient`_,
10* `be welcoming`_,
11* `be considerate`_,
12* `be respectful`_,
13* `be careful in the words that you choose and be kind to others`_, and
14* `when we disagree, try to understand why`_.
15
16This isn't an exhaustive list of things that you can't do. Rather, take it in
17the spirit in which it's intended - a guide to make it easier to communicate
18and participate in the community.
19
20This code of conduct applies to all spaces managed by the LLVM project or The
21LLVM Foundation. This includes IRC channels, mailing lists, bug trackers, LLVM
22events such as the developer meetings and socials, and any other forums created
23by the project that the community uses for communication. It applies to all of
24your communication and conduct in these spaces, including emails, chats, things
25you say, slides, videos, posters, signs, or even t-shirts you display in these
26spaces.
27
28In rare cases, violations of this code outside of these spaces may affect a
29person’s ability to participate within these spaces. Important examples
30include `sexual and gender-based violence`_, `hate crimes`_, and `hate speech`_.
31We do not conduct proactive research, but we have an obligation to respond
32to any reported concerns. We are not interested in evaluating severity,
33responding punitively, or holding people accountable. Both the relevance
34and our response is instead focused on how a person’s continued participation
35impacts the community’s safety, wellbeing, and inclusivity. We specifically
36prioritize remaining a welcoming community to victims as well as groups
37subjected to systemic marginalization or underrepresentation.
38
39In addition, violations of this code outside these spaces may, in rare
40cases, affect a person's ability to participate within them, when the conduct
41amounts to an egregious violation of this code.
42
43If you believe someone is violating the code of conduct, we ask that you report
44it by emailing conduct@llvm.org. For more details please see the
45:doc:`Reporting Guide <ReportingGuide>`.
46
47.. _be friendly and patient:
48
49* **Be friendly and patient.**
50
51.. _be welcoming:
52
53* **Be welcoming.** We strive to be a community that welcomes and supports
54  people of all backgrounds and identities. This includes, but is not limited
55  to members of any race, ethnicity, culture, national origin, colour,
56  immigration status, social and economic class, educational level, sex, sexual
57  orientation, gender identity and expression, age, size, family status,
58  political belief, religion or lack thereof, and mental and physical ability.
59
60.. _be considerate:
61
62* **Be considerate.** Your work will be used by other people, and you in turn
63  will depend on the work of others. Any decision you take will affect users
64  and colleagues, and you should take those consequences into account. Remember
65  that we're a world-wide community, so you might not be communicating in
66  someone else's primary language.
67
68.. _be respectful:
69
70* **Be respectful.** Not all of us will agree all the time, but disagreement is
71  no excuse for poor behavior and poor manners. We might all experience some
72  frustration now and then, but we cannot allow that frustration to turn into
73  a personal attack. It's important to remember that a community where people
74  feel uncomfortable or threatened is not a productive one. Members of the LLVM
75  community should be respectful when dealing with other members as well as
76  with people outside the LLVM community.
77
78.. _be careful in the words that you choose and be kind to others:
79
80* **Be careful in the words that you choose and be kind to others.** Do not
81  insult or put down other participants. Harassment and other exclusionary
82  behavior aren't acceptable. This includes, but is not limited to:
83
84  * Violent threats or language directed against another person.
85  * Discriminatory jokes and language.
86  * Posting sexually explicit or violent material.
87  * Posting (or threatening to post) other people's personally identifying
88    information ("doxing").
89  * Personal insults, especially those using racist or sexist terms.
90  * Unwelcome sexual attention.
91  * Advocating for, or encouraging, any of the above behavior.
92
93  In general, if someone asks you to stop, then stop. Persisting in such
94  behavior after being asked to stop is considered harassment.
95
96.. _when we disagree, try to understand why:
97
98* **When we disagree, try to understand why.** Disagreements, both social and
99  technical, happen all the time and LLVM is no exception. It is important that
100  we resolve disagreements and differing views constructively. Remember that
101  we're different. The strength of LLVM comes from its varied community, people
102  from a wide range of backgrounds. Different people have different
103  perspectives on issues. Being unable to understand why someone holds
104  a viewpoint doesn't mean that they're wrong. Don't forget that it is human to
105  err and blaming each other doesn't get us anywhere. Instead, focus on helping
106  to resolve issues and learning from mistakes.
107
108Reporting
109=========
110
111If you believe someone is violating the code of conduct you can always report
112it to the LLVM Foundation Code of Conduct Committee by emailing
113conduct@llvm.org. All reports will be kept confidential. This isn't a public
114list and only members of the advisory committee will receive the report. For
115details on what to include in the report, please see the :doc:`Reporting Guide
116<ReportingGuide>`.
117
118If you believe anyone is in physical danger, please notify appropriate law
119enforcement first. If you are unsure what law enforcement agency is
120appropriate, please include this in your report and we will attempt to notify
121them.
122
123If the violation occurs at an event such as a Developer Meeting and requires
124immediate attention, you can also reach out to any of the event organizers or
125staff. Event organizers and staff will be prepared to handle the incident and
126able to help. If you cannot find one of the organizers, the venue staff can
127locate one for you. We will also post detailed contact information for specific
128events as part of each events' information. In person reports will still be
129kept confidential exactly as above, but also feel free to (anonymously if
130needed) email conduct@llvm.org.
131
132Code of Conduct Committee
133=========================
134
135The committee will consist of a mininum of 5 members and members are asked to
136serve at least a 1 year term. New committee members will be selected by the
137current committee and the LLVM Foundation Board of Directors.
138
139When responding to a Code of Conduct report, the committee follows the
140following
141:doc:`Response Guide<ResponseGuide>`.
142
143The current committee members are:
144
145* Kit Barton (kbarton\@llvm.org)
146* Kristof Beyls (kristof.beyls\@llvm.org)
147* Mike Edwards (medwards\@llvm.org)
148* Hal Finkel (hfinkel\@llvm.org)
149* Cyndy Ishida (cishida\@llvm.org)
150* Anton Korobeynikov (anton.korobeynikov\@llvm.org)
151* Tanya Lattner (tanyalattner\@llvm.org)
152* Chris Lattner (clattner\@llvm.org)
153* Tom Stellard (tstellar\@llvm.org)
154
155
156Transparency Reports
157====================
158
159* `April 28, 2022 <https://llvm.org/coc-reports/2022-04-28-report.html>`_
160
161For details about what a Transparency Report is and what it contains, please see the :doc:`Response Guide<ResponseGuide>`.
162
163Questions?
164==========
165
166If you have questions, please feel free to contact the LLVM Foundation Code of
167Conduct Committee by emailing conduct@llvm.org.
168
169
170(This text is based on the `Django Project`_ Code of Conduct, which is in turn
171based on wording from the `Speak Up! project`_.)
172
173.. _Django Project: https://www.djangoproject.com/conduct/
174.. _Speak Up! project: http://speakup.io/coc.html
175.. _sexual and gender-based violence:
176.. _hate crimes: https://hatecrime.osce.org
177.. _hate speech: https://www.un.org/en/genocideprevention/documents/UN%20Strategy%20and%20Plan%20of%20Action%20on%20Hate%20Speech%2018%20June%20SYNOPSIS.pdf
178